| | |
| | | use app\api\logic\ActivityInfo as InfoActivityInfo; |
| | | use app\common\model\UserExtend as ModelUserExtend; |
| | | use think\Db; |
| | | |
| | | use EasyWeChat\Kernel\Support\AES; |
| | | /** |
| | | * 会员接口 |
| | | */ |
| | | class User extends Api |
| | | { |
| | | protected $noNeedLogin = ['GetRecomInviter','login', 'mobilelogin', 'resetpwd', 'changemobile', 'wxapplogin','bind_mobile_login','register']; |
| | | protected $noNeedLogin = ['GetDfgToken','GetRecomInviter','login', 'mobilelogin', 'resetpwd', 'changemobile', 'wxapplogin','bind_mobile_login','register']; |
| | | protected $noNeedRight = '*'; |
| | | |
| | | public function _initialize() |
| | |
| | | } |
| | | |
| | | |
| | | public function GetDfgToken() |
| | | { |
| | | $userId=$this->request->post('userid'); |
| | | if (!$userId) { |
| | | $this->error(__('Invalid parameters')); |
| | | } |
| | | //aes加密 |
| | | $enKey="wp4hs3bvu7wq2mud"; |
| | | $iv = 'fedcba9876543210'; |
| | | $decrypted = base64_encode(AES::encrypt($userId,$enKey, $iv)); |
| | | $this->success($decrypted); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 更新appclientid |
| | | */ |