Kaynağa Gözat

提醒结账

shish 3 yıl önce
ebeveyn
işleme
ae167516e4

+ 5 - 5
app-ghs/controllers/OrderClearController.php

@@ -92,11 +92,11 @@ class OrderClearController extends BaseController
                 $customShopId = $custom->shopId ?? 0;
                 $customShop = ShopClass::getById($customShopId, true);
                 if (!empty($customShop)) {
-//                    $noticeRespond = \bizHd\notice\classes\NoticeClass::newClearNotice($customShop, $clearInfo);
-//                    if (isset($noticeRespond['hasNotice']) && $noticeRespond['hasNotice'] == 1) {
-//                        $clearInfo->hasNoticeCustom = 1;
-//                        $clearInfo->save();
-//                    }
+                    $noticeRespond = \bizHd\notice\classes\NoticeClass::newClearNotice($customShop, $clearInfo);
+                    if (isset($noticeRespond['hasNotice']) && $noticeRespond['hasNotice'] == 1) {
+                        $clearInfo->hasNoticeCustom = 1;
+                        $clearInfo->save();
+                    }
                 }
             }
             util::success($clearInfo);

+ 6 - 3
biz-hd/notice/classes/NoticeClass.php

@@ -32,7 +32,9 @@ class NoticeClass extends BaseClass
         }
         $num = $clear->num ?? 0;
         $actPrice = $clear->actPrice ?? 0;
-        $time = date("H:i");
+        $ghsName = $clear->ghsName ?? '';
+        $ghsShopName = $clear->ghsShopName ?? '';
+        $name = $ghsName . ' ' . $ghsShopName;
         if (!empty($staffList)) {
             $ids = array_column($staffList, 'adminId');
             if (!empty($ids)) {
@@ -42,9 +44,10 @@ class NoticeClass extends BaseClass
                         $miniOpenId = $admin['miniOpenId'] ?? '';
                         if (!empty($miniOpenId)) {
                             $msg = [
-                                "amount3" => ["value" => $actPrice],
+                                "thing5" => $name,
                                 "short_thing2" => ["value" => $num . "笔"],
-                                "time1" => ["value" => $time],
+                                "amount3" => ["value" => $actPrice],
+                                "thing4" => ["value" => "点击打开帮我结下账哦"],
                             ];
                             $page = 'admin/clear/info?id=' . $clear->id;
                             $respond = miniUtil::commonSendSubscribeMessage($merchant, $ptStyle, $msgId, $miniOpenId, $page, $msg);

+ 4 - 4
common/components/dict.php

@@ -15,16 +15,16 @@ class dict
             'giveCoupon' => ['msgId' => '_MqYqXLgNPWvHg-tUuh3vJMTb2aAOvvIFf0Vm2pwjiI'],
             //购买成功通知
             'cgSuccess' => ['msgId' => 'UAIsxaFbkyi34CRYqncQ6pNsjNgn6Gcqte_AoHmPbxA'],
-            //提醒花店结账
-            'remindHdClear' => ['msgId' => 'Xyjo2M0uMbrTLg76wuMf0Q6cPZoUA4_5t4GLwk3Lud0'],
+            //账单生成提醒
+            'remindHdClear' => ['msgId' => 'Xyjo2M0uMbrTLg76wuMf0b7i_tqjcqosKj-hACDHPds'],
         ],
         'hdMiniMessageDev' => [
             //优惠券到账通知
             'giveCoupon' => ['msgId' => 'r7BIUWRqpVmqqOqdtq5BhjffkLyOaZxi0fvme_l-V8A'],
             //购买成功通知
             'cgSuccess' => ['msgId' => 'ZfCmPfD96W_H0-pWDyQHCJQC5ht41NXtTS8nP28xKQQ'],
-            //提醒花店结账
-            'remindHdClear' => ['msgId' => '1mj55S920TbW_iF_jpHQrQBhyBbzM-rz4iSmM55ACxY'],
+            //账单生成提醒
+            'remindHdClear' => ['msgId' => '1mj55S920TbW_iF_jpHQrdVShs7LQgPBzy_GeU3kbhk'],
         ],
         'mtConfig' => [
             'app_id' => '119094',