/** * 测试发送 * @param $mobile * @return bool */ public function test($mobile) { $default = $this->sign . '您的验证码是:【变量】。请不要把验证码泄露给其他人。'; $content = str_replace('【变量】', LmStr::random(6, '0987654321'), $default); return self::send($mobile, $content); }