初始上传
This commit is contained in:
39
app/event/message/MessageAccountChangeNotice.php
Executable file
39
app/event/message/MessageAccountChangeNotice.php
Executable file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\MemberAccount;
|
||||
|
||||
/**
|
||||
* 会员账户变动通知通知
|
||||
*/
|
||||
class MessageAccountChangeNotice
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//会员余额变动通知
|
||||
if ($param[ "keywords" ] == "USER_BALANCE_CHANGE_NOTICE") {
|
||||
$model = new MemberAccount();
|
||||
return $model->messageAccountChangeNotice($param);
|
||||
}
|
||||
|
||||
//会员积分变动通知
|
||||
if ($param[ "keywords" ] == "USER_POINT_CHANGE_NOTICE") {
|
||||
$model = new MemberAccount();
|
||||
return $model->messagePointChangeNotice($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
31
app/event/message/MessageBindCode.php
Executable file
31
app/event/message/MessageBindCode.php
Executable file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\Member;
|
||||
|
||||
|
||||
/**
|
||||
* 绑定发送验证码
|
||||
*/
|
||||
class MessageBindCode
|
||||
{
|
||||
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param[ "keywords" ] == "MEMBER_BIND") {
|
||||
$member_model = new Member();
|
||||
$result = $member_model->bindCode($param);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
}
|
||||
34
app/event/message/MessageBuyerOrderComplete.php
Executable file
34
app/event/message/MessageBuyerOrderComplete.php
Executable file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
|
||||
* 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
|
||||
/**
|
||||
* 买家订单完成通知商家
|
||||
*/
|
||||
class MessageBuyerOrderComplete
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return array|mixed|void
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param["keywords"] == "BUYER_ORDER_COMPLETE") {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageBuyerOrderComplete($param);
|
||||
}
|
||||
}
|
||||
}
|
||||
32
app/event/message/MessageBuyerPaySuccess.php
Executable file
32
app/event/message/MessageBuyerPaySuccess.php
Executable file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
|
||||
/**
|
||||
* 买家支付成功通知商家
|
||||
*/
|
||||
class MessageBuyerPaySuccess
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return array|mixed|void
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param[ "keywords" ] == "BUYER_PAY") {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageBuyerPaySuccess($param);
|
||||
}
|
||||
}
|
||||
}
|
||||
32
app/event/message/MessageCancelApply.php
Executable file
32
app/event/message/MessageCancelApply.php
Executable file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use addon\membercancel\model\MemberCancel;
|
||||
|
||||
/**
|
||||
* 会员注销申请通知
|
||||
*/
|
||||
class MessageCancelApply
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return array
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
if ($param[ "keywords" ] == "USER_CANCEL_APPLY") {
|
||||
$model = new MemberCancel();
|
||||
return $model->memberCancelApply($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
32
app/event/message/MessageCancelFail.php
Executable file
32
app/event/message/MessageCancelFail.php
Executable file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use addon\membercancel\model\MemberCancel;
|
||||
|
||||
/**
|
||||
* 会员注销失败通知
|
||||
*/
|
||||
class MessageCancelFail
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return array
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
if ($param[ "keywords" ] == "USER_CANCEL_FAIL") {
|
||||
$model = new MemberCancel();
|
||||
return $model->memberCancelFail($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
33
app/event/message/MessageCancelSuccess.php
Executable file
33
app/event/message/MessageCancelSuccess.php
Executable file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use addon\membercancel\model\MemberCancel;
|
||||
|
||||
/**
|
||||
* 会员注销成功通知
|
||||
*/
|
||||
class MessageCancelSuccess
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return array
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param[ "keywords" ] == "USER_CANCEL_SUCCESS") {
|
||||
$model = new MemberCancel();
|
||||
return $model->memberCancelSuccess($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
app/event/message/MessageCashierMemberVerifyCode.php
Executable file
30
app/event/message/MessageCashierMemberVerifyCode.php
Executable file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\Member;
|
||||
|
||||
|
||||
/**
|
||||
* 收银台会员验证验证码
|
||||
*/
|
||||
class MessageCashierMemberVerifyCode
|
||||
{
|
||||
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param[ "keywords" ] == "CASHIER_MEMBER_VERIFY_CODE") {
|
||||
$result = ( new Member() )->bindCode($param);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
}
|
||||
35
app/event/message/MessageFenxiaoWithdrawalApply.php
Executable file
35
app/event/message/MessageFenxiaoWithdrawalApply.php
Executable file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use addon\fenxiao\model\FenxiaoWithdraw;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
/**
|
||||
* 分销提现申请发送消息
|
||||
*/
|
||||
class MessageFenxiaoWithdrawalApply
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param[ "keywords" ] == "FENXIAO_WITHDRAWAL_APPLY") {
|
||||
$model = new FenxiaoWithdraw();
|
||||
return $model->messageFenxiaoWithdrawalApply($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
35
app/event/message/MessageFenxiaoWithdrawalError.php
Executable file
35
app/event/message/MessageFenxiaoWithdrawalError.php
Executable file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use addon\fenxiao\model\FenxiaoWithdraw;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
/**
|
||||
* 分销提现失败发送消息
|
||||
*/
|
||||
class MessageFenxiaoWithdrawalError
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param[ "keywords" ] == "FENXIAO_WITHDRAWAL_ERROR") {
|
||||
$model = new FenxiaoWithdraw();
|
||||
return $model->messageFenxiaoWithdrawalError($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
35
app/event/message/MessageFenxiaoWithdrawalSuccess.php
Executable file
35
app/event/message/MessageFenxiaoWithdrawalSuccess.php
Executable file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use addon\fenxiao\model\FenxiaoWithdraw;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
/**
|
||||
* 分销提现成功发送消息
|
||||
*/
|
||||
class MessageFenxiaoWithdrawalSuccess
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param[ "keywords" ] == "FENXIAO_WITHDRAWAL_SUCCESS") {
|
||||
$model = new FenxiaoWithdraw();
|
||||
return $model->messageFenxiaoWithdrawalSuccess($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
app/event/message/MessageFindCode.php
Executable file
30
app/event/message/MessageFindCode.php
Executable file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\Member;
|
||||
|
||||
|
||||
/**
|
||||
* 找回密码发送验证码
|
||||
*/
|
||||
class MessageFindCode
|
||||
{
|
||||
|
||||
public function handle($param)
|
||||
{
|
||||
if ($param[ "keywords" ] == "FIND_PASSWORD") {
|
||||
$member_model = new Member();
|
||||
$result = $member_model->findCode($param);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
}
|
||||
41
app/event/message/MessageLocalWaitDelivery.php
Executable file
41
app/event/message/MessageLocalWaitDelivery.php
Executable file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
|
||||
|
||||
/**
|
||||
* 外卖订单 指定配送员后 同步短信推送
|
||||
*/
|
||||
class MessageLocalWaitDelivery
|
||||
{
|
||||
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param["keywords"] == "MESSAGE_LOCAL_WAIT_DELIVERY") {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageLocalWaitDelivery($param);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
31
app/event/message/MessageLogin.php
Executable file
31
app/event/message/MessageLogin.php
Executable file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\Login;
|
||||
|
||||
|
||||
/**
|
||||
* 登录成功发送通知
|
||||
*/
|
||||
class MessageLogin
|
||||
{
|
||||
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param[ "keywords" ] == "LOGIN") {
|
||||
$login_model = new Login();
|
||||
$result = $login_model->loginSuccess($param);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
}
|
||||
32
app/event/message/MessageLoginCode.php
Executable file
32
app/event/message/MessageLoginCode.php
Executable file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\Login;
|
||||
|
||||
|
||||
/**
|
||||
* 登录发送验证码
|
||||
*/
|
||||
class MessageLoginCode
|
||||
{
|
||||
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param["keywords"] == "LOGIN_CODE") {
|
||||
$login_model = new Login();
|
||||
$result = $login_model->loginCode($param);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
}
|
||||
32
app/event/message/MessageMemberPayPassword.php
Executable file
32
app/event/message/MessageMemberPayPassword.php
Executable file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\Member;
|
||||
|
||||
/**
|
||||
* 登录成功发送通知
|
||||
*/
|
||||
class MessageMemberPayPassword
|
||||
{
|
||||
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param["keywords"] == "MEMBER_PAY_PASSWORD") {
|
||||
$member_model = new Member();
|
||||
$result = $member_model->paypasswordCode($param);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
37
app/event/message/MessageOrderClose.php
Executable file
37
app/event/message/MessageOrderClose.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
/**
|
||||
* 订单关闭发送消息
|
||||
*/
|
||||
class MessageOrderClose
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param["keywords"] == "ORDER_CLOSE") {
|
||||
//发送订单消息
|
||||
$model = new OrderMessage();
|
||||
return $model->messageOrderClose($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
app/event/message/MessageOrderCommissionGrant.php
Executable file
30
app/event/message/MessageOrderCommissionGrant.php
Executable file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
|
||||
* 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use addon\fenxiao\model\FenxiaoWithdraw;
|
||||
|
||||
/**
|
||||
* 分销佣金发放通知
|
||||
*/
|
||||
class MessageOrderCommissionGrant
|
||||
{
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param["keywords"] == "COMMISSION_GRANT") {
|
||||
$model = new FenxiaoWithdraw();
|
||||
return $model->messageOrderCommissionGrant($param);
|
||||
}
|
||||
}
|
||||
}
|
||||
36
app/event/message/MessageOrderComplete.php
Executable file
36
app/event/message/MessageOrderComplete.php
Executable file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
/**
|
||||
* 订单关闭发送消息
|
||||
*/
|
||||
class MessageOrderComplete
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
// 发送订单消息
|
||||
if ($param["keywords"] == "ORDER_COMPLETE") {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageOrderComplete($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
36
app/event/message/MessageOrderDelivery.php
Executable file
36
app/event/message/MessageOrderDelivery.php
Executable file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
/**
|
||||
* 订单发货发送消息
|
||||
*/
|
||||
class MessageOrderDelivery
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
// 发送订单消息
|
||||
if ($param["keywords"] == "ORDER_DELIVERY") {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageOrderDelivery($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
33
app/event/message/MessageOrderPaySuccess.php
Executable file
33
app/event/message/MessageOrderPaySuccess.php
Executable file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
|
||||
/**
|
||||
* 订单创建发送消息
|
||||
*/
|
||||
class MessageOrderPaySuccess
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return array|mixed|void
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param['keywords'] == 'ORDER_PAY') {
|
||||
$model = new OrderMessage();
|
||||
$model->messagePaySuccess($param);
|
||||
}
|
||||
}
|
||||
}
|
||||
33
app/event/message/MessageOrderRefundApply.php
Executable file
33
app/event/message/MessageOrderRefundApply.php
Executable file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
class MessageOrderRefundApply
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
// 发送订单消息
|
||||
if ($param["keywords"] == "BUYER_REFUND") {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageOrderRefundApply($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
32
app/event/message/MessageOrderRefundDelivery.php
Executable file
32
app/event/message/MessageOrderRefundDelivery.php
Executable file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
class MessageOrderRefundDelivery
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
// 发送订单消息
|
||||
if ($param[ "keywords" ] == "BUYER_DELIVERY_REFUND") {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageOrderRefundDelivery($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
35
app/event/message/MessageOrderUrgePayment.php
Executable file
35
app/event/message/MessageOrderUrgePayment.php
Executable file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
|
||||
* 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
|
||||
/**
|
||||
* 订单催付通知
|
||||
*/
|
||||
class MessageOrderUrgePayment
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param['keywords'] == 'ORDER_URGE_PAYMENT') {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageOrderUrgePayment($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
31
app/event/message/MessagePayPasswordCode.php
Executable file
31
app/event/message/MessagePayPasswordCode.php
Executable file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\Member;
|
||||
|
||||
/**
|
||||
* 绑定发送验证码
|
||||
*/
|
||||
class MessagePayPasswordCode
|
||||
{
|
||||
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param[ "keywords" ] == "MEMBER_PAY_PASSWORD") {
|
||||
$member_model = new Member();
|
||||
$result = $member_model->paypasswordCode($param);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
35
app/event/message/MessageRegisterCode.php
Executable file
35
app/event/message/MessageRegisterCode.php
Executable file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\Register;
|
||||
|
||||
|
||||
/**
|
||||
* 注册发送验证码
|
||||
*/
|
||||
class MessageRegisterCode
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return array|mixed|void
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param[ "keywords" ] == "REGISTER_CODE") {
|
||||
$register_model = new Register();
|
||||
$result = $register_model->registerCode($param);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
41
app/event/message/MessageSetPassWord.php
Executable file
41
app/event/message/MessageSetPassWord.php
Executable file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\Member;
|
||||
|
||||
|
||||
/**
|
||||
* 设置密码
|
||||
*/
|
||||
class MessageSetPassWord
|
||||
{
|
||||
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param[ "keywords" ] == "SET_PASSWORD") {
|
||||
$member_model = new Member();
|
||||
$result = $member_model->bindCode($param);
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
33
app/event/message/MessageShopRefundAgree.php
Executable file
33
app/event/message/MessageShopRefundAgree.php
Executable file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
class MessageShopRefundAgree
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
// 发送订单消息
|
||||
if ($param["keywords"] == "ORDER_REFUND_AGREE") {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageOrderRefundAgree($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
33
app/event/message/MessageShopRefundRefuse.php
Executable file
33
app/event/message/MessageShopRefundRefuse.php
Executable file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
class MessageShopRefundRefuse
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
// 发送订单消息
|
||||
if ($param["keywords"] == "ORDER_REFUND_REFUSE") {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageOrderRefundRefuse($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
33
app/event/message/MessageShopVerified.php
Executable file
33
app/event/message/MessageShopVerified.php
Executable file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
class MessageShopVerified
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
// 发送订单消息
|
||||
if ($param["keywords"] == "VERIFY") {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageOrderVerify($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
36
app/event/message/MessageUserWithdrawalApply.php
Executable file
36
app/event/message/MessageUserWithdrawalApply.php
Executable file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\Withdraw;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
/**
|
||||
* 会员提现申请发送消息
|
||||
*/
|
||||
class MessageUserWithdrawalApply
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param["keywords"] == "USER_WITHDRAWAL_APPLY") {
|
||||
$model = new Withdraw();
|
||||
return $model->messageUserWithdrawalApply($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
36
app/event/message/MessageUserWithdrawalError.php
Executable file
36
app/event/message/MessageUserWithdrawalError.php
Executable file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\Withdraw;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
/**
|
||||
* 会员提现失败发送消息
|
||||
*/
|
||||
class MessageUserWithdrawalError
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param["keywords"] == "USER_WITHDRAWAL_ERROR") {
|
||||
$model = new Withdraw();
|
||||
return $model->messageUserWithdrawalError($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
36
app/event/message/MessageUserWithdrawalSuccess.php
Executable file
36
app/event/message/MessageUserWithdrawalSuccess.php
Executable file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\member\Withdraw;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
/**
|
||||
* 会员提现成功发送消息
|
||||
*/
|
||||
class messageUserWithdrawalSuccess
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
//发送订单消息
|
||||
if ($param["keywords"] == "USER_WITHDRAWAL_SUCCESS") {
|
||||
$model = new Withdraw();
|
||||
return $model->messageUserWithdrawalSuccess($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
34
app/event/message/MessageVerifyCodeExpire.php
Executable file
34
app/event/message/MessageVerifyCodeExpire.php
Executable file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
|
||||
* 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
|
||||
/**
|
||||
* 核销码过期提醒
|
||||
*/
|
||||
class MessageVerifyCodeExpire
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
if ($param["keywords"] == "VERIFY_CODE_EXPIRE") {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageVerifyCodeExpire($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
34
app/event/message/MessageVerifyOrderOutTime.php
Executable file
34
app/event/message/MessageVerifyOrderOutTime.php
Executable file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
|
||||
* 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
|
||||
* =========================================================
|
||||
*/
|
||||
|
||||
namespace app\event\message;
|
||||
|
||||
use app\model\order\OrderMessage;
|
||||
|
||||
/**
|
||||
* 核销商品临期提醒
|
||||
*/
|
||||
class MessageVerifyOrderOutTime
|
||||
{
|
||||
/**
|
||||
* @param $param
|
||||
* @return void|null
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
if ($param["keywords"] == "ORDER_VERIFY_OUT_TIME") {
|
||||
$model = new OrderMessage();
|
||||
return $model->messageVerifyOrderOutTime($param);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user