You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
737 B

<?php
namespace app\base\controller\mptoutiao\api;
use think\App;
class Auth extends Base
{
/**
* 抖音小程序 授权登录
* @param string $param ['code'] 接口返回的登录凭证
* @param string $param ['anonymous_code'] 接口返回的匿名登录凭证
* @date 2022-10-19
*/
public function getOpenid()
{
$param = input('post.');
$auth_logic = new \app\base\logic\mptoutiao\Auth();
// 授权登录
$result = $auth_logic->getOpenid($param['code'], $param['anonymous_code']);
return json($result);
}
/**
* 支付宝小程序 授权获取手机号
* @date 2021-12-30
*/
public function getPhoneNumber()
{
}
}