Commit 1c0ed84c by mushishixian

temp

parent 3dbcbe39
Showing with 2 additions and 0 deletions
package dao package dao
import ( import (
"fmt"
"github.com/ichunt2019/cfg/lib" "github.com/ichunt2019/cfg/lib"
"github.com/imroc/req" "github.com/imroc/req"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
...@@ -29,6 +30,7 @@ func StatisticsSuppliersSkuNum() (err error) { ...@@ -29,6 +30,7 @@ func StatisticsSuppliersSkuNum() (err error) {
} }
result := resp.String() result := resp.String()
skuNum := gjson.Get(result, "data.total").Int() skuNum := gjson.Get(result, "data.total").Int()
fmt.Println(skuNum)
if skuNum == 0 { if skuNum == 0 {
continue continue
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment