This commit is contained in:
邹宗楠
2025-12-17 16:48:55 +08:00
parent 4011fb0a73
commit 61a35f19c0
5 changed files with 84 additions and 23 deletions

View File

@@ -194,8 +194,8 @@ func TestMap(t *testing.T) {
}
func TestRetailDat(t *testing.T) {
err := api.RetailInitData("F71D0F0881A211ED9D81525400E86DC0", "26207799", "mtcode_1808750374413807658", map[string]interface{}{
"app_food_code": "mtcode_1808750374413807658",
err := api.RetailInitData("F71D0F0881A211ED9D81525400E86DC0", "18698027", "25008", map[string]interface{}{
"app_food_code": "25008",
"category_name": "活动",
"common_attr_value": "[{\"attrId\":1200000135,\"attrName\":\"包装方式\",\"valueList\":[{\"setValue\":true,\"setValueId\":true,\"value\":\"散装\",\"valueId\":1300000232}]},{\"attrId\":1200000202,\"attrName\":\"品种\",\"valueList\":[{\"setValue\":true,\"setValueId\":true,\"value\":\"韭菜\",\"valueId\":1300003045}]}]",
"description": "",
@@ -361,7 +361,7 @@ func TestRetailSellStatus2(t *testing.T) {
//根据分类id查询属性列表
func TestCategoryAttrList(t *testing.T) {
//result, err := api.CategoryAttrList(200002680)
result, err := api.CategoryAttrList(400000717)
result, err := api.CategoryAttrList(200002794)
if err != nil {
t.Fatal(err)
}