self::ORDER_PAY_NOTICE, //订单支付通知 'DDFHTZ' => self::ORDER_DELIVERY_NOTICE, //订单发货通知 'ZCYZ' => self::REGISTER_NOTICE, //注册验证 'ZHMM' => self::GET_BACK_MOBILE_NOTICE, //找回密码 'YZMDL' => self::GET_GODE_LOGIN_NOTICE, //验证码登录 'BGSJHM' => self::CHANGE_MOBILE_NOTICE, //变更手机号码 'BDSJHM' => self::BIND_MOBILE_NOTICE, //绑定手机号码 'ZHZFMM' => self::GET_BACK_PAY_CODE_NOTICE, // 找回支付密码 'SJRZSB' => self::SHOP_APPLY_ERROR_NOTICE, //商家入驻失败 'SJRZCG' => self::SHOP_APPLY_SUCCESS_NOTICE, //商家入驻成功 'SJSQYZ' => self::SHOP_APPLY_CHECK_CODE,//商家入驻申请验证码验证 'DDTZSJ' => self::USER_PAID_NOTICE_SHOP,//下单通知商家 'SHTZSJ' => self::AFTER_SALE_NOTICE_SHOP,//售后通知商家 'SJSQTZPT' => self::SHOP_APPLY_NOTICE_PLATFORM, //商家申请通知平台 'SJTXTZPT' => self::SHOP_WITHDRAWAL_NOTICE_PLATFORM, //商家提现通知平台 ]; /** * Notes: 通知描述 * @param $state * @author 段誉(2021/6/4 15:14) * @return array|mixed|string */ public static function getSceneDesc($state) { $data = [ //会员-短信验证码 self::REGISTER_NOTICE => '注册会员短信验证码通知', self::CHANGE_MOBILE_NOTICE => '变更手机短信验证码通知', self::GET_BACK_MOBILE_NOTICE => '找回登录密码短信验证码通知', self::GET_GODE_LOGIN_NOTICE => '手机短信验证码登录通知', self::BIND_MOBILE_NOTICE => '手机绑定短信验证码验证通知', self::GET_BACK_PAY_CODE_NOTICE => '找回支付密码短信验证码通知', //会员-订单相关通知 self::ORDER_PAY_NOTICE => '成功下单通知', self::ORDER_DELIVERY_NOTICE => '订单发货通知', self::AFTER_SALE_NOTICE => '售后退款申请状态通知', //会员-佣金相关通知 self::GET_FUTURE_EARNINGS_NOTICE => '获得预估推广佣金通知', self::GET_EARNINGS_NOTICE => '推广佣金到账通知', //会员-其他通知 self::INVITE_SUCCESS_NOTICE => '成功邀请粉丝通知', self::SHOP_APPLY_ERROR_NOTICE => '商家入驻申请失败通知', self::SHOP_APPLY_SUCCESS_NOTICE => '商家入驻申请成功通知', self::SHOP_APPLY_CHECK_CODE => '商家入驻手机短信验证通知', //平台 self::SHOP_APPLY_NOTICE_PLATFORM => '商家入驻通知', self::SHOP_WITHDRAWAL_NOTICE_PLATFORM => '商家提现通知', //商家 self::USER_PAID_NOTICE_SHOP => '订单通知', self::AFTER_SALE_NOTICE_SHOP => '售后退款申请通知', ]; if ($state === true) { return $data; } return $data[$state] ?? ''; } }