ayHaru il y a 4 ans
Parent
commit
099692288a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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();
         }