|
@@ -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();
|
|
|
}
|