This commit is contained in:
cdle 2021-08-18 15:32:42 +08:00
parent 203ea0eb6e
commit ff8247674c

View File

@ -527,6 +527,7 @@ func jsGold(cookie string, state chan int64) {
req.Header("Content-Type", "application/x-www-form-urlencoded")
req.Body(`functionId=MyAssetsService.execute&body={"method":"goldShopPage","data":{"channel":1}}&_t=1629271472844&appid=market-task-h5;`)
data, _ := req.Bytes()
gold, _ := jsonparser.GetInt(data, "data.balanceVO.formateGoldBalance")
fmt.Println(string(data))
gold, _ := jsonparser.GetInt(data, "data.balanceVO.goldBalance")
state <- gold
}