|
|
@@ -173,6 +173,7 @@ class Taxi extends ApiController
|
|
|
$hasOrderId = model('common/TaxiOrder')->where(['user_id'=> $user['id'],'status'=> 1])->order('created_at','desc')->value('id');
|
|
|
if($hasOrderId){
|
|
|
model('common/TaxiOrder')->updateBy($hasOrderId, $params);
|
|
|
+ $order = model('common/TaxiOrder')->where(['id'=> $hasOrderId])->findOrFail();
|
|
|
}else{
|
|
|
$order = model('common/TaxiOrder')::create($params,true);
|
|
|
}
|