|
|
@@ -34,14 +34,19 @@ use think\facade\Log;
|
|
|
class DouYinController extends BaseApiController
|
|
|
{
|
|
|
|
|
|
- public array $notNeedLogin = ['testNotify','register','account','getAllGoods','getGoodsDetail','payNotify'];
|
|
|
-
|
|
|
+ public array $notNeedLogin = ['testNotify','getClientToken','register','account','getAllGoods','getGoodsDetail','payNotify'];
|
|
|
public function testNotify()
|
|
|
{
|
|
|
// https://weixiudev.kyjlkj.com/api/dou_yin/testNotify
|
|
|
$params = $this->request->post();
|
|
|
Log::info('dy_testNotify:'.json_encode($params));
|
|
|
}
|
|
|
+
|
|
|
+ public function getClientToken()
|
|
|
+ {
|
|
|
+ $access_token = DouYinService::getClientToken();
|
|
|
+ return $this->success('',['access_token'=>$access_token]);
|
|
|
+ }
|
|
|
/**
|
|
|
* 手机号注册
|
|
|
* @author liugc <466014217@qq.com>
|