浏览代码

请输入密码付款

shish 1 年之前
父节点
当前提交
2ab5c119cd
共有 2 个文件被更改,包括 16 次插入0 次删除
  1. 4 0
      app-hd/controllers/OrderController.php
  2. 12 0
      biz/shop/classes/ShopExtClass.php

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

@@ -387,6 +387,10 @@ class OrderController extends BaseController
                 $msg = $response['msg'] ?? '';
                 $retCode = $response['code'] ?? '';
                 $fullMsg = $msg . "(零售端付款码:{$authCode})" . '(' . $name . ')';
+                if ($retCode == 'BBS10000' || $retCode == 'BBS11105') {
+                    $shopId = $order->shopId;
+                    ShopExtClass::remindInputPassword($shopId);
+                }
                 noticeUtil::push($fullMsg . ' ' . $retCode . ' 编号008', '15280215347');
                 util::success(['returnStatus' => 'FAILURE', 'returnCode' => $retCode], $msg);
             }

+ 12 - 0
biz/shop/classes/ShopExtClass.php

@@ -346,6 +346,18 @@ class ShopExtClass extends BaseClass
         }
     }
 
+    //提醒输入密码 ssh 20250501
+    public static function remindInputPassword($shopId)
+    {
+        $shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], true);
+        if (!empty($shopExt->lbSn)) {
+            $sound = "请输入密码付款";
+            $url = "https://speaker.17laimai.cn/notify.php?id={$shopExt->lbSn}&token=HK1626595800&version={$shopExt->lbVersion}&message=" . $sound;
+            $curl = new curl\Curl();
+            $curl->get($url);
+        }
+    }
+
     //清除所有小菊
     public static function clearXjALl($shopId)
     {