关联openid

master
秀才 11 months ago
parent 697fe31695
commit 94a6f0708f
  1. 6
      application/wap/controller/Login.php
  2. 4
      extend/basic/WapBasic.php

@ -178,9 +178,9 @@ class Login extends WapBasic
/**账号密码登录 /**账号密码登录
* @param Request $request * @param Request $request
* @throws \think\db\exception\DataNotFoundException * @throws DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException * @throws ModelNotFoundException
* @throws \think\exception\DbException * @throws DbException
*/ */
public function check(Request $request) public function check(Request $request)
{ {

@ -223,12 +223,12 @@ class WapBasic extends Controller
/** /**
* 绑定微信 * 绑定微信
* @param Request $request * @param Request $request
* @param User $account * @param $account
* @throws DataNotFoundException * @throws DataNotFoundException
* @throws DbException * @throws DbException
* @throws ModelNotFoundException * @throws ModelNotFoundException
*/ */
public function bindWeixin(Request $request, User $account): void public function bindWeixin(Request $request, $account): void
{ {
[$ucode, $spid, $spread, $iv, $encryptedData, $type, $username, $currentAvatar] = UtilService::postMore([ [$ucode, $spid, $spread, $iv, $encryptedData, $type, $username, $currentAvatar] = UtilService::postMore([
['ucode', ''], ['ucode', ''],

Loading…
Cancel
Save