Commit a8e400c7 by 叶明星

添加审核人

parent 63b85851
Showing with 4 additions and 2 deletions
...@@ -12,10 +12,12 @@ class ExchangesTask extends Task ...@@ -12,10 +12,12 @@ class ExchangesTask extends Task
{ {
private $data; private $data;
private $Exchange; private $Exchange;
public function __construct($data,$Exchange) private $audit_id;
public function __construct($data , $Exchange , $audit_id = 1)
{ {
$this->data = $data; $this->data = $data;
$this->Exchange = $Exchange; $this->Exchange = $Exchange;
$this->audit_id = $audit_id;
} }
// 处理任务的逻辑,运行在Task进程中,不能投递任务 // 处理任务的逻辑,运行在Task进程中,不能投递任务
public function handle() public function handle()
...@@ -33,7 +35,7 @@ class ExchangesTask extends Task ...@@ -33,7 +35,7 @@ class ExchangesTask extends Task
$UserExchangModel = new UserExchange(); $UserExchangModel = new UserExchange();
$Exchang = [ $Exchang = [
'status' => 1, 'status' => 1,
'audit_id' => 1, 'audit_id' => $this->audit_id,
'audit_reason' => '系统自动审核' 'audit_reason' => '系统自动审核'
]; ];
$result = $UserExchangModel->SaveRecord($this->data['id'] , $Exchang); $result = $UserExchangModel->SaveRecord($this->data['id'] , $Exchang);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment