38 lines
891 B
PHP
38 lines
891 B
PHP
<?php
|
|
|
|
namespace app\api\controller\user;
|
|
|
|
use app\api\controller\BaseApiController;
|
|
use app\api\logic\user\UserLogic;
|
|
use app\api\validate\PasswordValidate;
|
|
use app\api\validate\SetUserInfoValidate;
|
|
use app\api\validate\UserValidate;
|
|
|
|
/**
|
|
* 用户控制器
|
|
* Class UserController
|
|
* @package app\api\controller
|
|
*/
|
|
class UserController extends BaseApiController
|
|
{
|
|
|
|
|
|
/**
|
|
* @notes 获取小程序手机号
|
|
* @return \think\response\Json
|
|
* @author 段誉
|
|
* @date 2022/9/21 16:46
|
|
*/
|
|
public function getMobileByMnp()
|
|
{
|
|
$params = (new UserValidate())->post()->goCheck('getMobileByMnp');
|
|
$params['user_id'] = $this->userId;
|
|
$result = UserLogic::getMobileByMnp($params);
|
|
if ($result === false) {
|
|
return $this->fail(UserLogic::getError());
|
|
}
|
|
return $this->success('绑定成功', [], 1, 1);
|
|
}
|
|
|
|
|
|
} |