withdrawModel = $withdrawModel; } public function organizeData() { // TODO: Implement organizeData() method.\ $this->data = [ ['name' => '时间', 'value' => date('Y-m-d H:i:s', $this->withdrawModel->audit_at)], ['name' => '金额', 'value' => $this->withdrawModel->amounts], ['name' => '手续费', 'value' => $this->withdrawModel->actual_poundage], ['name' => '提现单号', 'value' => $this->withdrawModel->withdraw_sn], ]; } public function sendMessage() { // TODO: Implement sendMessage() method. $this->getTemplate('withdraw_fail'); $this->organizeData(); \Log::debug("新版公众号消息-提现失败1",$this->template_id); \Log::debug("新版公众号消息-提现失败2",$this->withdrawModel->hasOneMember->hasOneFans->openid); \Log::debug("新版公众号消息-提现失败3",$this->data); $result = (new OfficialMessageNotice($this->temp_id,$this->withdrawModel->hasOneMember->hasOneFans->openid,$this->data,[],1,$this->url))->sendMessage(); if ($result['status'] == 0) { \Log::debug($result['message']); } } }