shish 4 лет назад
Родитель
Сommit
1ea2dd8bc4
2 измененных файлов с 8 добавлено и 1 удалено
  1. 7 0
      app-hd/controllers/OrderController.php
  2. 1 1
      biz/wx/classes/WxMessageClass.php

+ 7 - 0
app-hd/controllers/OrderController.php

@@ -479,6 +479,7 @@ class OrderController extends BaseController
 
             //前台提示收款多少钱
             ShopExtClass::hdGatheringReport($order);
+
             //前台提醒出示付款码
             if (isset($order->status) && $order->status == 1) {
                 if (isset($post['isCashier']) && $post['isCashier'] == 1) {
@@ -486,6 +487,12 @@ class OrderController extends BaseController
                 }
             }
 
+            $shopId = $order->shopId ?? 0;
+            $shop = ShopClass::getById($shopId, true);
+            if ($order->payStatus == 1) {
+                WxMessageClass::gatheringIncomeInform($shop, $order);
+            }
+
             //新制作单提示
             $shopExt = ShopExtClass::getByCondition(['shopId' => $this->shopId], true);
             ShopExtClass::newWorkRemind($shopExt, $order);

+ 1 - 1
biz/wx/classes/WxMessageClass.php

@@ -429,7 +429,7 @@ class WxMessageClass extends BaseClass
                 "data" => [
                     "first" => ["value" => "您有新的收入。", "color" => "#173177"],
                     "keyword1" => ["value" => $actPrice, "color" => "#173177"],
-                    "keyword2" => ["value" => '二维码收款', "color" => "#173177"],
+                    "keyword2" => ["value" => '门店收款', "color" => "#173177"],
                     "keyword3" => ["value" => date("Y-m-d H:i"), "color" => "#173177"],
                     "remark" => ["value" => "点击查看详情", "color" => "#173177"]
                 ]