1
This commit is contained in:
1
business/partner/printer/trendit/trendit.go
Normal file
1
business/partner/printer/trendit/trendit.go
Normal file
@@ -0,0 +1 @@
|
||||
package trendit
|
||||
@@ -1641,7 +1641,7 @@ func (c *StoreController) BatchGetMTStoreLogos() {
|
||||
// @Title 批量修改美团门店logo图片
|
||||
// @Description 批量修改美团门店logo图片
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorOrgCode query string true "美团平台账号"
|
||||
// @Param vendorOrgCode query int true "美团平台账号"
|
||||
// @Param relInfos query string true "美团门店与logo链接的map"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
@@ -1652,14 +1652,8 @@ func (c *StoreController) BatchUpdateMTStoreLogos() {
|
||||
b := bytes.NewBufferString(params.RelInfos)
|
||||
decoder := json.NewDecoder(b)
|
||||
if err = decoder.Decode(&mtRelInfos); err == nil {
|
||||
hint = cms.BatchUpdateMTStoreLogos(params.VendorOrgCode, mtRelInfos)
|
||||
hint = cms.BatchUpdateMTStoreLogos(utils.Int2Str(params.VendorOrgCode), mtRelInfos)
|
||||
}
|
||||
//if err = mapstructure.Decode(params.RelInfos, &mtRelInfos); err == nil {
|
||||
// hint = cms.BatchUpdateMTStoreLogos(params.VendorOrgCode, mtRelInfos)
|
||||
//}
|
||||
//if err := utils.UnmarshalUseNumber([]byte(params.RelInfos), &mtRelInfos); err == nil {
|
||||
// hint = cms.BatchUpdateMTStoreLogos(params.VendorOrgCode, mtRelInfos)
|
||||
//}
|
||||
return nil, hint, nil
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user