no commit message
This commit is contained in:
@@ -95,7 +95,7 @@ class SurveyService extends CommonService
|
||||
}
|
||||
|
||||
//更新订单状态:查勘待派单
|
||||
if (!Db::name('inquiry')->where(['order_no' => $data['order_no']])->update(['status'=>4, 'update_time' => new \DateTime])) {
|
||||
if (!Db::name('inquiry')->where(['order_no' => $data['order_no']])->update(['status'=>4, 'update_time' => date('Y-m-d H:i:s')])) {
|
||||
Db::rollback();
|
||||
return ['code'=>-1, 'msg'=>'更新订单状态失败'];
|
||||
}
|
||||
@@ -146,7 +146,7 @@ class SurveyService extends CommonService
|
||||
}
|
||||
|
||||
//更新订单状态:查勘待派单
|
||||
if (!Db::name('inquiry')->where(['order_no' => $data['order_no']])->update(['status'=>4, 'update_time' => new \DateTime])) {
|
||||
if (!Db::name('inquiry')->where(['order_no' => $data['order_no']])->update(['status'=>4, 'update_time' => date('Y-m-d H:i:s')])) {
|
||||
Db::rollback();
|
||||
return ['code'=>-1, 'msg'=>'更新订单状态失败'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user