|
|
|
@ -110,6 +110,20 @@ class Config extends BaseController |
|
|
|
return success('',$url); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取移动端邀请链接 |
|
|
|
* @return \think\response\Json |
|
|
|
*/ |
|
|
|
public function getMoveInviteLink(){ |
|
|
|
$uid=$this->userInfo['user_id']; |
|
|
|
// 邀请码仅两天有效 |
|
|
|
$code=\utils\Str::random(8); |
|
|
|
Cache::set($code,$uid,172800); |
|
|
|
$move_host = env('app.move_host',''); |
|
|
|
$url = $move_host.'/#/pages/login/register?inviteCode='.$code; |
|
|
|
return success('',$url); |
|
|
|
} |
|
|
|
|
|
|
|
// 发送测试邮件 |
|
|
|
public function sendTestEmail(){ |
|
|
|
$email=$this->request->param('email'); |
|
|
|
|