ayHaru 4 年之前
父节点
当前提交
099692288a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/index/controller/Order.php

+ 1 - 1
application/index/controller/Order.php

@@ -153,7 +153,7 @@ class Order extends Base
     private function createRandCode(){
         $code = rand(100000,999999);
         $BoxModel = new BoxModel();
-        $box = $BoxModel->where('code',$code)->find();
+        $box = $BoxModel->where('fetch_code',$code)->find();
         if(!empty($box)){
             $this->createRandCode();
         }