Browse Source

核销bug

lizhen_gitee 3 tháng trước cách đây
mục cha
commit
03517a0b17
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      application/api/controller/Hexiao.php

+ 1 - 1
application/api/controller/Hexiao.php

@@ -84,7 +84,7 @@ class Hexiao extends Api
         Db::startTrans();
         $order = Db::name('unishop_order')->where(['out_trade_no' => $out_trade_no])->lock(true)->find();
 
-        if(empty($order_info)){
+        if(empty($order)){
             Db::rollback();
             $this->error('不存在的订单');
         }