|
|
@@ -3,6 +3,7 @@
|
|
|
namespace hd\controllers;
|
|
|
|
|
|
use biz\admin\classes\AdminClass;
|
|
|
+use biz\common\classes\GhsNotifyClass;
|
|
|
use biz\ghs\classes\GhsClass;
|
|
|
use biz\shop\classes\ShopClass;
|
|
|
use biz\shop\classes\ShopExtClass;
|
|
|
@@ -864,9 +865,11 @@ class PurchaseController extends BaseController
|
|
|
if (!empty($shop)) {
|
|
|
//微信通知供货商
|
|
|
//WxMessageClass::ghsHasNewOrderInform($shop, $order);
|
|
|
- $noticeText = json_encode(['orderId' => $saleId]);
|
|
|
- $noticeKey = "hdCgNoticeGhs";
|
|
|
- Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
|
|
|
+// $noticeText = json_encode(['orderId' => $saleId]);
|
|
|
+// $noticeKey = "hdCgNoticeGhs";
|
|
|
+// Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
|
|
|
+
|
|
|
+ GhsNotifyClass::newOrderNotify($saleId);
|
|
|
|
|
|
//向供货商APP发通知
|
|
|
// $cgShop = ShopClass::getById($cg->shopId, true, 'shopName, merchantName');
|