添加抖音授权登录,国美测试接口,修改运单重复骑手,添加推送骑手信息

This commit is contained in:
邹宗楠
2022-05-13 16:05:19 +08:00
parent 977d11ed9c
commit a91f46207f
49 changed files with 3355 additions and 254 deletions

View File

@@ -1,7 +1,10 @@
package mtwm
import (
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/model/dao"
"testing"
"time"
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
@@ -24,5 +27,23 @@ func TestGetVendorCategories(t *testing.T) {
if err != nil {
t.Fatal(err)
}
for _, v := range result {
data := model.SkuVendorCategory{
ModelIDCUL: model.ModelIDCUL{
CreatedAt: time.Now(),
UpdatedAt: time.Now(),
LastOperator: "刘磊",
},
VendorCategoryID: v.VendorCategoryID,
VendorID: v.VendorID,
Name: v.Name,
IsLeaf: v.IsLeaf,
Level: v.Level,
ParentID: v.ParentID,
}
if err := dao.CreateEntity(dao.GetDB(),&data);err != nil {
t.Log(utils.Format4Output(err, false))
}
}
t.Log(utils.Format4Output(result, false))
}