'粉丝昵称', 'value' => $withdrawModel->hasOneMember->nickname], ['name' => '申请时间', 'value' => $withdrawModel->created_at->toDateTimeString()], ['name' => '提现金额', 'value' => $withdrawModel->amounts], ['name' => '手续费金额', 'value' => $withdrawModel->poundage], ['name' => '劳务税金额', 'value' => $withdrawModel->servicetax], ['name' => '提现类型', 'value' => $withdrawModel->type_name], ['name' => '提现方式', 'value' => $withdrawModel->pay_way_name], ['name' => '提现单号', 'value' => $withdrawModel->withdraw_sn], ]; $this->transfer($temp_id, $params); } private function transfer($temp_id, $params) { $this->msg = MessageTemp::getSendMsg($temp_id, $params); if (!$this->msg) { return; } $this->templateId = MessageTemp::$template_id; $this->sendToShops(); } private function sendToShops() { if (empty(\Setting::get('withdraw.notice.withdraw_user'))) { return; } if (empty($this->templateId)) { return; } $news_link = MessageTemp::find($this->templateId)->news_link; $news_link = $news_link ?:''; //客服发送消息通知 foreach (\Setting::get('withdraw.notice.withdraw_user') as $withdraw_user) { $this->notice($this->templateId, $this->msg, $withdraw_user['uid'],'',$news_link); } } }