1
This commit is contained in:
@@ -298,8 +298,6 @@ func (a *API) RetailBatchInitData(trackInfo, poiCode string, foodDataList []map[
|
||||
if err == nil {
|
||||
failedFoodList, err = handleRetailBatchResult(result)
|
||||
}
|
||||
globals.SugarLogger.Debugf("result :%s", utils.Format4Output(result, false))
|
||||
globals.SugarLogger.Debugf("err :%v", err)
|
||||
|
||||
return failedFoodList, err
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
var token = `{"access_token":"90283046-8f2b-46cf-90f1-e522b229e784","expires_in":1697080460,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"ae493f0f-97d8-43ca-9b0e-727480add1fa","authority_id":""}`
|
||||
var token = `{"access_token":"7b2a921d-176e-42e9-ae43-2ff47bc84ad3","expires_in":1697682826,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"633e1be6-6dfb-4c51-9e71-72502a35330e","authority_id":""}`
|
||||
var a = New("7267745202649957900", "51998fcf-d521-4553-8c0c-fa662c8dbd6e", token)
|
||||
|
||||
// 查询售后单详情
|
||||
|
||||
@@ -10,7 +10,6 @@ import (
|
||||
)
|
||||
|
||||
func TestApi(t *testing.T) {
|
||||
a := New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", "")
|
||||
result, err := a.CreateToken("7cfe00c4-f8f0-4f93-992d-baeecd3bef5d")
|
||||
globals.SugarLogger.Debugf("%v", utils.Format4Output(result, false))
|
||||
globals.SugarLogger.Debugf("%v", utils.Format4Output(err, false))
|
||||
@@ -63,8 +62,6 @@ func TestCreateExpss(t *testing.T) {
|
||||
|
||||
// 同意退货申请
|
||||
func TestReturnGoodsToWareHouseSuccess(t *testing.T) {
|
||||
token := `{"access_token":"60f530b2-9ab6-4723-b487-c094918f0d21","expires_in":1666257163,"scope":"SCOPE","shop_id":"","shop_name":"小时达开放平台对接专用店","refresh_token":"1220666a-5e88-458c-a8c0-06d949fbbd3f","authority_id":""}`
|
||||
a := New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token)
|
||||
a.ReturnGoodsToWareHouseSuccess("7154200345302827303")
|
||||
}
|
||||
|
||||
|
||||
@@ -8,9 +8,6 @@ import (
|
||||
)
|
||||
|
||||
func TestBillDetail(t *testing.T) {
|
||||
var token = `{"access_token":"7b2a921d-176e-42e9-ae43-2ff47bc84ad3","expires_in":1697682826,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"633e1be6-6dfb-4c51-9e71-72502a35330e","authority_id":""}`
|
||||
var a = New("7267745202649957900", "51998fcf-d521-4553-8c0c-fa662c8dbd6e", token)
|
||||
|
||||
orderDetail, err := a.GetTiktokOrderDetail("6922140885578684202")
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
|
||||
@@ -25,8 +25,6 @@ func TestGetRecommendCategory(t *testing.T) {
|
||||
// "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/VqGYBUaL_m_7457cda4c101d05bcd2a1258b61d2ba1_sx_223234_www800-800",
|
||||
// //"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_GhxlaZ_70852585116381186630419_c55b8401b00e96e4114431a1dbd7c99c_sx_582346_www1000-1000",
|
||||
//}
|
||||
var token = `{"access_token":"90283046-8f2b-46cf-90f1-e522b229e784","expires_in":1697080460,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"ae493f0f-97d8-43ca-9b0e-727480add1fa","authority_id":""}`
|
||||
var a = New("7267745202649957900", "51998fcf-d521-4553-8c0c-fa662c8dbd6e", token)
|
||||
|
||||
name := "广茄 "
|
||||
data, err := a.GetRecommendCategoryByName(name)
|
||||
|
||||
@@ -55,9 +55,6 @@ func TestGetSkuDetail(t *testing.T) {
|
||||
|
||||
// 查询商品详情本地商品id
|
||||
func TestGetSkuDetailLocalId(t *testing.T) {
|
||||
var token = `{"access_token":"90283046-8f2b-46cf-90f1-e522b229e784","expires_in":1697080460,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"ae493f0f-97d8-43ca-9b0e-727480add1fa","authority_id":""}`
|
||||
var a = New("7267745202649957900", "51998fcf-d521-4553-8c0c-fa662c8dbd6e", token)
|
||||
|
||||
data, err := a.GetSkuDetail("3592503538749683119", "")
|
||||
fmt.Println(err)
|
||||
globals.SugarLogger.Debugf("====%s", utils.Format4Output(data, false))
|
||||
@@ -116,7 +113,6 @@ func TestEditStoreCommodity2(t *testing.T) {
|
||||
|
||||
// 解密购买用户电话,名字,地址
|
||||
func TestBatchDecrypt(t *testing.T) {
|
||||
a := New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token)
|
||||
orderID := "6919995408850359976"
|
||||
order, err := a.GetTiktokOrderDetail(orderID)
|
||||
if err != nil || order == nil {
|
||||
@@ -138,8 +134,7 @@ func TestBatchDecrypt(t *testing.T) {
|
||||
// a.OrderUserInfoSensitive("4988354190732430566")
|
||||
//}
|
||||
|
||||
var c = []int64{
|
||||
64208920}
|
||||
var c = []int64{64270223}
|
||||
|
||||
//668851,
|
||||
//668841,
|
||||
@@ -162,6 +157,9 @@ var c = []int64{
|
||||
|
||||
// 删除已经创建商品,重新同步
|
||||
func TestDeleteSkuAndUploadSku(t *testing.T) {
|
||||
var token = `{"access_token":"7b2a921d-176e-42e9-ae43-2ff47bc84ad3","expires_in":1697682826,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"633e1be6-6dfb-4c51-9e71-72502a35330e","authority_id":""}`
|
||||
var a = New("7267745202649957900", "51998fcf-d521-4553-8c0c-fa662c8dbd6e", token)
|
||||
|
||||
var errList = make([]error, 0, 0)
|
||||
for _, v := range c {
|
||||
for i := 1; i < 100; i++ {
|
||||
|
||||
@@ -88,9 +88,6 @@ func GetTiktokImgList(api *API, storeId, appOrgCode string, detailImg string, im
|
||||
}
|
||||
|
||||
func TestRefundToken(t *testing.T) {
|
||||
token := `{"access_token":"a1746210-a8a3-4497-a87b-09d1f10dbb95","expires_in":1665652230,"scope":"SCOPE","shop_id":"","shop_name":"小时达开放平台对接专用店","refresh_token":"c1cf8d88-0983-4f2a-b969-3746fae6b0cd","authority_id":""}`
|
||||
|
||||
a := New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token)
|
||||
a.RefreshToken()
|
||||
|
||||
}
|
||||
|
||||
@@ -510,8 +510,6 @@ func TestGetProvince(t *testing.T) {
|
||||
|
||||
// 仓库绑定门店
|
||||
func TestBindWarehouseToStore(t *testing.T) {
|
||||
token := `{"access_token":"a1746210-a8a3-4497-a87b-09d1f10dbb95","expires_in":1665652230,"scope":"SCOPE","shop_id":"","shop_name":"小时达开放平台对接专用店","refresh_token":"c1cf8d88-0983-4f2a-b969-3746fae6b0cd","authority_id":""}`
|
||||
a := New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token)
|
||||
|
||||
data, err := a.StoreBindWarehouse(&warehouse_bindStore_request.WarehouseBindStoreParam{
|
||||
StoreIds: []int64{65312663},
|
||||
|
||||
Reference in New Issue
Block a user