|
@@ -155,7 +155,7 @@ class Order extends Base
|
|
|
{
|
|
|
$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();
|
|
|
}
|