|
|
@@ -13,20 +13,20 @@ class SmsService extends BaseService
|
|
|
public static $baseFile = '\biz\message\classes\SmsClass';
|
|
|
|
|
|
//设置申请会员的验证码 shish 2019.12.18
|
|
|
- public static function setApplyMemberCode($userId, $code)
|
|
|
+ public static function setApplyMemberCode($userId, $mobile, $code)
|
|
|
{
|
|
|
$smsTypeList = SmsClass::$smsType;
|
|
|
$applyMemberType = $smsTypeList['applyMember']['sign'];
|
|
|
- $key = 'SMS_' . $applyMemberType . '_' . $userId;
|
|
|
+ $key = 'SMS_' . $applyMemberType . '_' . $userId . '_' . $mobile;
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$key, 300, $code]);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//取申请会员的验证码 shish 2019.12.18
|
|
|
- public static function getApplyMemberCode($userId)
|
|
|
+ public static function getApplyMemberCode($userId, $mobile)
|
|
|
{
|
|
|
$smsTypeList = SmsClass::$smsType;
|
|
|
$applyMemberType = $smsTypeList['applyMember']['sign'];
|
|
|
- $key = 'SMS_' . $applyMemberType . '_' . $userId;
|
|
|
+ $key = 'SMS_' . $applyMemberType . '_' . $userId . '_' . $mobile;
|
|
|
$cacheCode = Yii::$app->redis->executeCommand('GET', [$key]);
|
|
|
return $cacheCode;
|
|
|
}
|
|
|
@@ -36,11 +36,11 @@ class SmsService extends BaseService
|
|
|
{
|
|
|
//要算钱的
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//平台发短信 shish 2020.3.3
|
|
|
public static function platformSend()
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
/*
|
|
|
主要就更解决能不能发送的问题
|
|
|
|
|
|
@@ -53,7 +53,7 @@ class SmsService extends BaseService
|
|
|
|
|
|
最低部就是发送接口
|
|
|
*/
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|