|
@@ -90,7 +90,7 @@ class Sms
|
|
|
*/
|
|
|
public static function check($mobile, $code, $event = 'default')
|
|
|
{
|
|
|
- if($code == '1212') return true;
|
|
|
+ if($code == config('site.smscode')) return true;
|
|
|
$time = time() - self::$expire;
|
|
|
$sms = \app\common\model\Sms::where(['mobile' => $mobile, 'event' => $event])
|
|
|
->order('id', 'DESC')
|