Commit 9d5506b3 by 杨树贤

Merge branch 'master' into ysx-ic助手服务开发-20190824

parents 355c1f79 4d629493
Showing with 4 additions and 2 deletions
......@@ -12,10 +12,12 @@ class ExchangesTask extends Task
{
private $data;
private $Exchange;
public function __construct($data,$Exchange)
private $audit_id;
public function __construct($data , $Exchange , $audit_id = 1)
{
$this->data = $data;
$this->Exchange = $Exchange;
$this->audit_id = $audit_id;
}
// 处理任务的逻辑,运行在Task进程中,不能投递任务
public function handle()
......@@ -33,7 +35,7 @@ class ExchangesTask extends Task
$UserExchangModel = new UserExchange();
$Exchang = [
'status' => 1,
'audit_id' => 1,
'audit_id' => $this->audit_id,
'audit_reason' => '系统自动审核'
];
$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