buyerMessage = new MiniBuyerMessage($order,$formId,$type,$title); $this->shopMessage = new MiniShopMessage($order,$formId,$type,$title); $this->formId = $formId; $this->noticeType = $type; } // public function canceled() // { // $this->buyerMessage->canceled(); // // } // // public function created() // { // $this->shopMessage->goodsBuy(1); // $this->buyerMessage->created(); // if (\Setting::get('shop.notice.notice_enable.created')) { // $this->shopMessage->created(); // } // } // // public function paid() // { // $this->shopMessage->goodsBuy(2); // $this->buyerMessage->paid(); // // if (\Setting::get('shop.notice.notice_enable.paid')) { // $this->shopMessage->paid(); // } // // } // // public function sent() // { // $this->buyerMessage->sent(); // // } public function refund() { $this->buyerMessage->delivery('订单发货提醒'); } public function canceled() { $this->buyerMessage->canceled('订单取消通知'); } public function received() { if ($this->noticeType == 2) { $this->shopMessage->paymentRemind('订单支付成功提醒'); } $this->buyerMessage->paymentSuccess('订单支付成功通知'); } }