WIN-2308041133\Administrator 6 tháng trước cách đây
mục cha
commit
29ba1aafbf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      application/admin/model/WechatPlan.php

+ 1 - 1
application/admin/model/WechatPlan.php

@@ -19,7 +19,7 @@ class WechatPlan extends Model
             list($msec, $sec) = explode(' ', microtime());
             $msectime = number_format((floatval($msec) + floatval($sec)) * 1000, 0, '', '');
             $orderId = 'qy' . $msectime . mt_rand(10000, 99999);
-        } while (self::where(['order_id' => $orderId])->find());
+        } while (self::where(['contract_code' => $orderId])->find());
         return $orderId;
     }
     public static function lst($where)