1
This commit is contained in:
@@ -117,7 +117,7 @@ type SellerInfo struct {
|
||||
func (a *API) QueryInvoiceSetting(baiduShopId []string) ([]*SettingList, error) {
|
||||
parameter := make([]*StoreIdList, 0, len(baiduShopId))
|
||||
for _, v := range baiduShopId {
|
||||
parameter = append(parameter, &StoreIdList{BaiDuShopId: v})
|
||||
parameter = append(parameter, &StoreIdList{BaiDuShopId: v, ShopId: "5000061"})
|
||||
}
|
||||
|
||||
data, err := a.AccessAPI("invoice.settings.list", map[string]interface{}{"shop_list": parameter})
|
||||
@@ -170,12 +170,12 @@ func (a *API) BathUpdateInvoiceSetting(baiDuStoreId string, setting *StoreInvoic
|
||||
failList := make([]*ResultList, 0, 0)
|
||||
respList := data.Data.(map[string]interface{})
|
||||
if respList["success_shop_list"] != nil {
|
||||
if err = utils.UnmarshalUseNumber(utils.MustMarshal(respList["success_shop_list"]), successList); err != nil {
|
||||
if err = utils.UnmarshalUseNumber(utils.MustMarshal(respList["success_shop_list"]), &successList); err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
}
|
||||
if respList["failed_shop_list"] != nil {
|
||||
if err = utils.UnmarshalUseNumber(utils.MustMarshal(respList["failed_shop_list"]), failList); err != nil {
|
||||
if err = utils.UnmarshalUseNumber(utils.MustMarshal(respList["failed_shop_list"]), &failList); err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user