mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Js.php
This commit is contained in:
parent
f040128166
commit
dd33966953
@ -60,6 +60,21 @@ class Js extends Controller
|
|||||||
return Response::create($content)->contentType('application/x-javascript');
|
return Response::create($content)->contentType('application/x-javascript');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 给指定地址创建签名参数
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
* @throws \think\Exception
|
||||||
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
|
* @throws \think\db\exception\DbException
|
||||||
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
|
*/
|
||||||
|
public function sdk()
|
||||||
|
{
|
||||||
|
$data = $this->_vali(['url.require' => '签名地址不能为空!']);
|
||||||
|
$this->success('获取签名参数', WechatService::instance()->getWebJssdkSign($data['url']));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生成授权内容
|
* 生成授权内容
|
||||||
* @return string
|
* @return string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user