sth
This commit is contained in:
parent
8ba818b8f5
commit
416c20735f
|
|
@ -135,6 +135,7 @@ class Auditorder extends Backend
|
||||||
}
|
}
|
||||||
|
|
||||||
$params['audit_admin_id'] = $this->auth->id;
|
$params['audit_admin_id'] = $this->auth->id;
|
||||||
|
$params['audit_time'] = date('Y-m-d H:i:s');
|
||||||
|
|
||||||
$result = $row->allowField(true)->save($params);
|
$result = $row->allowField(true)->save($params);
|
||||||
|
|
||||||
|
|
@ -144,13 +145,17 @@ class Auditorder extends Backend
|
||||||
$hookParams['remark'] = $params['audit_remark'];
|
$hookParams['remark'] = $params['audit_remark'];
|
||||||
Hook::listen('order_change',$hookParams);
|
Hook::listen('order_change',$hookParams);
|
||||||
|
|
||||||
//未通过审核,通知派单员,重新配置
|
if($params['status'] == Order::STATUS_CHECKONCE){
|
||||||
Message::create([
|
//未通过审核,通知派单员,重新配置
|
||||||
'to_id' => $row->dispatch_admin_id,
|
Message::create([
|
||||||
'type' => 1,
|
'to_id' => $row->dispatch_admin_id,
|
||||||
'title' => '订单'.$row->order_no.'财务审核未通过,请重新配置',
|
'type' => 1,
|
||||||
'content' => '订单编号:'.$row->order_no.',审核说明:'.$params['audit_remark'].',审核人:'.$this->auth->nickname
|
'title' => '订单'.$row->order_no.'财务审核未通过,请重新配置',
|
||||||
]);
|
'content' => '订单编号:'.$row->order_no.',审核说明:'.$params['audit_remark'].',审核人:'.$this->auth->nickname
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Db::commit();
|
Db::commit();
|
||||||
} catch (ValidateException|PDOException|Exception $e) {
|
} catch (ValidateException|PDOException|Exception $e) {
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user