Browse Source

通知管理员

shish 6 years ago
parent
commit
005fef798d

+ 1 - 1
app/shop/controllers/TestController.php

@@ -95,7 +95,7 @@ class TestController extends BaseController
 	{
 	{
 		$merchant = MerchantService::getMerchantById(12362);
 		$merchant = MerchantService::getMerchantById(12362);
 		$order = OrderService::getById(214810);
 		$order = OrderService::getById(214810);
-		InformAdminClass::sendComplete($order, $merchant);
+		InformAdminClass::sendComplete($order);
 	}
 	}
 
 
 	public function actionNotice()
 	public function actionNotice()

+ 3 - 2
biz/message/classes/InformAdminClass.php

@@ -189,9 +189,10 @@ class InformAdminClass extends BaseClass
     }
     }
 
 
     //订单完成通知店长 shish 2020.3.19
     //订单完成通知店长 shish 2020.3.19
-    public static function sendComplete($order, $merchant)
+    public static function sendComplete($order)
     {
     {
-        $merchantId = $merchant['id'];
+        $merchant = WxOpenClass::getWxInfo();
+        $merchantId = 0;
         $orderId = $order['id'];
         $orderId = $order['id'];
         $shopId = $order['shopId'];
         $shopId = $order['shopId'];
         $adminList = ShopAdminService::getNoticeAdminList($shopId);
         $adminList = ShopAdminService::getNoticeAdminList($shopId);

+ 1 - 1
biz/order/classes/OrderSendClass.php

@@ -104,7 +104,7 @@ class OrderSendClass extends BaseClass
         //完成通知客户
         //完成通知客户
         InformUserClass::sendComplete($user, $order, $merchant);
         InformUserClass::sendComplete($user, $order, $merchant);
         //完成通知管理员
         //完成通知管理员
-        InformAdminClass::sendComplete($order, $merchant);
+        InformAdminClass::sendComplete($order);
     }
     }
 
 
 }
 }