Kaynağa Gözat

门店收入提醒

shish 4 yıl önce
ebeveyn
işleme
1ea2dd8bc4

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

@@ -479,6 +479,7 @@ class OrderController extends BaseController
 
 
             //前台提示收款多少钱
             //前台提示收款多少钱
             ShopExtClass::hdGatheringReport($order);
             ShopExtClass::hdGatheringReport($order);
+
             //前台提醒出示付款码
             //前台提醒出示付款码
             if (isset($order->status) && $order->status == 1) {
             if (isset($order->status) && $order->status == 1) {
                 if (isset($post['isCashier']) && $post['isCashier'] == 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);
             $shopExt = ShopExtClass::getByCondition(['shopId' => $this->shopId], true);
             ShopExtClass::newWorkRemind($shopExt, $order);
             ShopExtClass::newWorkRemind($shopExt, $order);

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

@@ -429,7 +429,7 @@ class WxMessageClass extends BaseClass
                 "data" => [
                 "data" => [
                     "first" => ["value" => "您有新的收入。", "color" => "#173177"],
                     "first" => ["value" => "您有新的收入。", "color" => "#173177"],
                     "keyword1" => ["value" => $actPrice, "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"],
                     "keyword3" => ["value" => date("Y-m-d H:i"), "color" => "#173177"],
                     "remark" => ["value" => "点击查看详情", "color" => "#173177"]
                     "remark" => ["value" => "点击查看详情", "color" => "#173177"]
                 ]
                 ]