// +---------------------------------------------------------------------- namespace app\controller\api; use crmeb\basic\BaseController; use crmeb\services\WechatService; class Wechat extends BaseController { public function jsConfig() { $data = WechatService::create()->jsSdk($this->request->param('url')?:$this->request->host()); $data['openTagList'] = ['wx-open-launch-weapp']; return app('json')->success($data); } }