diff --git a/card_pay/card_pay.go b/card_pay/card_pay.go index bf05cf3..34fff79 100644 --- a/card_pay/card_pay.go +++ b/card_pay/card_pay.go @@ -226,3 +226,17 @@ func WithdrawalForSubMerchant(keyArr, param map[string]string) (string, error) { //} return CardPaySend("/api/txs/pay/WithdrawalForSubMerchant", keyArr, param) } +func WithdrawalQueryForSubMerchant(keyArr, param map[string]string) (string, error) { + + //param := map[string]string{ + // "version": "3.0", + // "outTradeNo": "1233333444", + // "memberId": "562658004035964", + // //"protocol": "p202306201841814421887", + // "payAmount": "98", + // "procedureCustomerCode": "", + // "payCurrency": "CNY", + // "notifyUrl": "http://inapi.izhyin.cn/api/v1/swipe/withdrawal/notify/123456", + //} + return CardPaySend("/api/txs/pay/WithdrawalQueryForSubMerchant", keyArr, param) +} diff --git a/dataoke/dataoke.go b/dataoke/dataoke.go index f8eec87..efcbe0c 100644 --- a/dataoke/dataoke.go +++ b/dataoke/dataoke.go @@ -14,7 +14,7 @@ func DataokeFriendsCircleList(params map[string]string) []map[string]string { if err != nil { return goods } - data := gjson.Get(string(resp), "data").String() + data := gjson.Get(string(resp), "data.list").String() if data == "" { return goods } diff --git a/jingtuitui/jingtuitui.go b/jingtuitui/jingtuitui.go index 15c3f23..65f4c71 100644 --- a/jingtuitui/jingtuitui.go +++ b/jingtuitui/jingtuitui.go @@ -13,7 +13,7 @@ func JingtuituiGetCircleList(params map[string]string) []map[string]string { if err != nil { return goods } - data := gjson.Get(string(resp), "data").String() + data := gjson.Get(string(resp), "result.data").String() if data == "" { return goods } diff --git a/taobao/search_list.go b/taobao/search_list.go index 400a898..61e6ffa 100644 --- a/taobao/search_list.go +++ b/taobao/search_list.go @@ -167,7 +167,7 @@ func (t *TB) GetList(tbArgs map[string]string, bizSceneId string) ([]byte, error return resp, nil } func (t *TB) SearchList(args map[string]string) (*[]Material, error) { - resp, err := t.GetList(args, "2") + resp, err := t.GetList(args, "") //如果是跟随官方 结构不一样 if t.AuthType == 1 { var tmp scMaterialOptionalStruct