11
This commit is contained in:
@@ -102,6 +102,7 @@ func (a *API) GetStore(storeID string) (getStoreResult *GetStoreResult, err erro
|
|||||||
return nil, fmt.Errorf("%s", result["msg"])
|
return nil, fmt.Errorf("%s", result["msg"])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println("fn_getStoreDATA======", result["business_data"])
|
||||||
if storeData, ok := result["business_data"]; ok {
|
if storeData, ok := result["business_data"]; ok {
|
||||||
if err := json.Unmarshal([]byte(utils.Interface2String(storeData)), &getStoreResult); err != nil {
|
if err := json.Unmarshal([]byte(utils.Interface2String(storeData)), &getStoreResult); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
@@ -86,9 +86,9 @@ func TestAddTip(t *testing.T) {
|
|||||||
// 获取可用取消订单原因
|
// 获取可用取消订单原因
|
||||||
func TestGetCancelReasonList(t *testing.T) {
|
func TestGetCancelReasonList(t *testing.T) {
|
||||||
api = New("6705486294797503379", "c1e6c280-e618-4103-9d0a-673bc54fb22e", "5375691", "DDSdQhSc02m6l4oPVDELgx")
|
api = New("6705486294797503379", "c1e6c280-e618-4103-9d0a-673bc54fb22e", "5375691", "DDSdQhSc02m6l4oPVDELgx")
|
||||||
token, err := api.GetAccessToken()
|
//token, err := api.GetAccessToken()
|
||||||
fmt.Println(err)
|
//fmt.Println(err)
|
||||||
api.accessToken = token.BusinessDataObj.AccessToken
|
api.accessToken = ""
|
||||||
|
|
||||||
data, err := api.GetCancelReasonList(&GetOrderDetailReq{
|
data, err := api.GetCancelReasonList(&GetOrderDetailReq{
|
||||||
OrderId: "300000219758073736",
|
OrderId: "300000219758073736",
|
||||||
|
|||||||
Reference in New Issue
Block a user