Browse Source

结账管理

shish 1 year ago
parent
commit
3283afdb2d
1 changed files with 2 additions and 6 deletions
  1. 2 6
      app-hd/controllers/PurchaseClearController.php

+ 2 - 6
app-hd/controllers/PurchaseClearController.php

@@ -169,10 +169,8 @@ class PurchaseClearController extends BaseController
                 $code = $response['code'] ?? 0;
                 $customMobile = $order->customMobile ?? '';
                 $ghsName = $order->ghsName ?? '';
-                noticeUtil::push('花店结账,单号:' . $oldOrderSn . ',关单没有成功,原因:【' . $msg . '】,' . $code . ',客户手机号:' . $customMobile . ',供货商:' . $ghsName, '15280215347');
+                noticeUtil::push('第一个,花店结账,单号:' . $oldOrderSn . ',关单没有成功,原因:【' . $msg . '】,' . $code . ',客户手机号:' . $customMobile . ',供货商:' . $ghsName, '15280215347');
                 //util::fail('出错了,请取消本单重试');
-            } else {
-                noticeUtil::push('花店结账,单号:' . $oldOrderSn . ',关单有成功!!!!', '15280215347');
             }
 
             //收银台关单
@@ -181,9 +179,7 @@ class PurchaseClearController extends BaseController
             if (!isset($response['code']) || $response['code'] != '000000') {
                 $msg = $response['msg'] ?? '';
                 $code = $response['code'] ?? 0;
-                noticeUtil::push('花店结账,单号:' . $oldOrderSn . ',收银台关单没有成功,原因:【' . $msg . '】,' . $code, '15280215347');
-            } else {
-                noticeUtil::push('花店结账,单号:' . $oldOrderSn . ',收银台关单有成功OK', '15280215347');
+                noticeUtil::push('第二个,花店结账,单号:' . $oldOrderSn . ',收银台关单没有成功,原因:【' . $msg . '】,' . $code, '15280215347');
             }
 
             $newOrderSn = orderSn::getPurchaseClearSn();