- fix some store to stores.
This commit is contained in:
@@ -84,9 +84,9 @@ func (c *StoreSkuController) UpdateStoreSkus() {
|
||||
// @Param skuIDs formData string false "SKU ID列表,缺省为全部"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /SyncStoreSkus [put]
|
||||
func (c *StoreSkuController) SyncStoreSkus() {
|
||||
c.callSyncStoreSkus(func(params *tStoreSkuSyncStoreSkusParams) (retVal interface{}, errCode string, err error) {
|
||||
// @router /SyncStoresSkus [put]
|
||||
func (c *StoreSkuController) SyncStoresSkus() {
|
||||
c.callSyncStoresSkus(func(params *tStoreSkuSyncStoresSkusParams) (retVal interface{}, errCode string, err error) {
|
||||
db := dao.GetDB()
|
||||
var storeIDs []int
|
||||
var skuIDs []int
|
||||
@@ -95,7 +95,7 @@ func (c *StoreSkuController) SyncStoreSkus() {
|
||||
err = utils.UnmarshalUseNumber([]byte(params.SkuIDs), &skuIDs)
|
||||
}
|
||||
if err == nil {
|
||||
err = basesch.FixedBaseScheduler.GetPurchasePlatformFromVendorID(params.VendorID).SyncStoreSkus(db, storeIDs, skuIDs, params.IsSync, GetUserNameFromToken(params.Token))
|
||||
err = basesch.FixedBaseScheduler.GetPurchasePlatformFromVendorID(params.VendorID).SyncStoresSkus(db, storeIDs, skuIDs, params.IsSync, GetUserNameFromToken(params.Token))
|
||||
}
|
||||
}
|
||||
return retVal, "", err
|
||||
|
||||
Reference in New Issue
Block a user