From c3d272d0d3a9ad0a38343c38d4f12c767cef138e Mon Sep 17 00:00:00 2001 From: gazebo Date: Sun, 14 Apr 2019 13:27:35 +0800 Subject: [PATCH] - up --- business/jxstore/cms/storeman.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/business/jxstore/cms/storeman.go b/business/jxstore/cms/storeman.go index f226f9f39..52a62b84d 100644 --- a/business/jxstore/cms/storeman.go +++ b/business/jxstore/cms/storeman.go @@ -39,12 +39,16 @@ func (s *StoreManager) OnStoreStatusChanged(vendorStoreID string, vendorID int, } } else { if storeDetail.Status == model.StoreStatusOpened { - storeMapKV = map[string]interface{}{ - "Status": storeStatus, + if storeDetail.VendorStatus != storeStatus { + storeMapKV = map[string]interface{}{ + "Status": storeStatus, + } } } else if storeDetail.Status <= storeStatus { - storeMapKV = map[string]interface{}{ - "Status": model.StoreStatusOpened, + if storeDetail.VendorStatus != model.StoreStatusOpened { + storeMapKV = map[string]interface{}{ + "Status": model.StoreStatusOpened, + } } } }