This commit is contained in:
邹宗楠
2024-10-14 12:43:40 +08:00
parent ed24e8e777
commit a73ce9b444
6 changed files with 76 additions and 20 deletions

View File

@@ -8,7 +8,7 @@ import (
)
// 京西速食(蔬菜)
var token1 = `{"access_token":"5a646b72-9eb2-4fc9-a037-541d6dab98c7","expires_in":1723880345,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市","refresh_token":"493e94e2-7cae-4f47-95b8-f6cb6dec4d7c","authority_id":""}`
var token1 = `{"access_token":"5f597642-4bd2-4083-beea-18ed631d9ad9","expires_in":1727788890,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市","refresh_token":"1b755265-1821-44b2-a355-20e78f76f981","authority_id":""}`
// 美好菜市
//var token1 = `{"access_token":"9a315a03-c737-4a82-ae52-c9a6ce827007","expires_in":1699490747,"scope":"SCOPE","shop_id":68032645,"shop_name":"美好菜市","refresh_token":"8334c006-5301-4d25-911b-4d8cc7b70ebb","authority_id":""}`

View File

@@ -18,7 +18,7 @@ func GetCmd(request *http.Request) (cmd string) {
// EventSignChange 回调消息防伪标签校验
func (a *API) EventSignChange(c *http.Request) (*CallbackResponse, []byte) {
body, _ := ioutil.ReadAll(c.Body)
if beego.BConfig.RunMode == "jxgy" {
if beego.BConfig.RunMode == "jxgy" || beego.BConfig.RunMode == "jxpet" {
return CallbackResponseErr(true), body
}
signParam := a.appKey + string(body) + a.appSecret

View File

@@ -126,15 +126,16 @@ func TestBatchDecrypt(t *testing.T) {
fmt.Println(err)
}
var c = []int64{131006464}
var c = []int64{190504428}
// 删除已经创建商品,重新同步
func TestDeleteSkuAndUploadSku(t *testing.T) {
var errList = make([]error, 0, 0)
for _, v := range c {
for i := 1; i < 100; i++ {
result, err := a.GetSkuDetailList(&product_listV2_request.ProductListV2Param{
CheckStatus: 3, // 1-未提交2-待审核3-审核通过4-审核未通过5-封禁7-审核通过待上架
CheckStatus: 4, // 1-未提交2-待审核3-审核通过4-审核未通过5-封禁7-审核通过待上架
Page: int64(i),
Size: 100,
StoreId: v,