美团力荐
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
package ebaiapi
|
package ebaiapi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSkuCategoryList(t *testing.T) {
|
func TestSkuCategoryList(t *testing.T) {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package mtwmapi
|
package mtwmapi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
@@ -191,6 +192,13 @@ func TestGetByAppPoiCodeAndType(t *testing.T) {
|
|||||||
t.Log(utils.Format4Output(result, false))
|
t.Log(utils.Format4Output(result, false))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestSgin(t *testing.T) {
|
||||||
|
timestamp := time.Now().Unix()
|
||||||
|
sign := api.signParams("https://waimaiopen.meituan.com/api/v1/wm/IM/getConnectionToken", map[string]interface{}{"timestamp": timestamp, "app_id": 589})
|
||||||
|
fmt.Println(sign)
|
||||||
|
fmt.Println(timestamp)
|
||||||
|
}
|
||||||
|
|
||||||
func TestBaokuanHuodong(t *testing.T) {
|
func TestBaokuanHuodong(t *testing.T) {
|
||||||
// 获取门店所有的爆款活动
|
// 获取门店所有的爆款活动
|
||||||
storeId := 668887
|
storeId := 668887
|
||||||
@@ -220,11 +228,7 @@ func TestBaokuanHuodong(t *testing.T) {
|
|||||||
loseActivitySkuIdList = append(loseActivitySkuIdList, lose)
|
loseActivitySkuIdList = append(loseActivitySkuIdList, lose)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 取消当前力荐商品
|
|
||||||
loseActivitySkuIdList = append(loseActivitySkuIdList, &StoreSkuInfo{
|
|
||||||
SkuID: utils.Str2Int("31794"),
|
|
||||||
IsSpecialty: 0,
|
|
||||||
})
|
|
||||||
if err := UpdateStoreSkusSpecTag(nil, "589", storeId, vendorStoreId, loseActivitySkuIdList); err != nil {
|
if err := UpdateStoreSkusSpecTag(nil, "589", storeId, vendorStoreId, loseActivitySkuIdList); err != nil {
|
||||||
globals.SugarLogger.Debugf("取消力荐错误:= %v", err)
|
globals.SugarLogger.Debugf("取消力荐错误:= %v", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user