shish 3 éve
szülő
commit
102fcba829
1 módosított fájl, 0 hozzáadás és 8 törlés
  1. 0 8
      app-hd/controllers/PurchaseController.php

+ 0 - 8
app-hd/controllers/PurchaseController.php

@@ -274,18 +274,14 @@ class PurchaseController extends BaseController
         $orderSn = isset($post['orderSn']) ? $post['orderSn'] : 0;
         $order = PurchaseClass::getByCondition(['orderSn' => $orderSn], true);
         if (empty($order)) {
-            noticeUtil::push('订单号无效。。。 ' , '15280215347');
             util::fail('订单号无效');
         }
         if ($order->status == 5) {
-            noticeUtil::push('订单已取消。。。 ' , '15280215347');
             util::fail('订单已取消');
         }
         if ($order->status != 1) {
-            noticeUtil::push('订单不是待付款状态。。。 ' , '15280215347');
             util::fail('订单不是待付款状态');
         }
-        noticeUtil::push('a。。。 ' , '15280215347');
         $id = $order->id;
         $order->changePrice = 2;
         $order->save();
@@ -294,17 +290,14 @@ class PurchaseController extends BaseController
         $current = time();
 
         if (($current + 50) > strtotime($deadline)) {
-            noticeUtil::push('c。。。 ' , '15280215347');
             util::fail('订单已失效,请重新下单');
         }
-        noticeUtil::push('b。。。 ' , '15280215347');
 
         $name = $orderSn;
         $totalFee = $order->realPrice;
         //强制使用小程序的miniOpenId
         $openId = isset($this->admin) && !empty($this->admin) ? $this->admin->miniOpenId : '';
         if (empty($openId)) {
-            noticeUtil::push('d。。。 ' , '15280215347');
             util::success(['hasError' => 1, 'hasNoMiniOpenId' => 1]);
         }
         $purchaseCapital = dict::getDict('capitalType', 'xhPurchase', 'id');
@@ -331,7 +324,6 @@ class PurchaseController extends BaseController
         $input->SetTime_expire(date("YmdHis", $expireTime));
         $input->SetNotify_url(Yii::$app->params['hdHost'] . '/notice/wx-callback/');
         $input->SetTrade_type("JSAPI");
-        noticeUtil::push('ee。。。 ' , '15280215347');
         //花卉宝代为申请的微信支付
         $merchantExtend = WxOpenClass::getWxInfo();