success($data); } /** * 公众号授权回调 */ public function accountCallback() { $url = WechatLogic::accountCallbackLogic(); return redirect($url); } /** * @SWG\Post( * path="/wechat/account/config", * tags={"公众号"}, * summary="获取公众号配置接口", * description="获取公众号配置接口", * produces={"application/json"}, * @SWG\Parameter( * name="url", * in="query", * description="当前页面地址", * type="string" * ), * @SWG\Parameter( * name="wechat_app_code", * in="query", * description="应用编号", * type="string" * ), * @SWG\Response( * response="200", * description="success", * @SWG\Schema( * @SWG\Property( * property="appId", * type="string", * description="appId" * ), * @SWG\Property( * property="timestamp", * type="string", * description="timestamp" * ), * @SWG\Property( * property="nonceStr", * type="string", * description="nonceStr" * ), * @SWG\Property( * property="signature", * type="string", * description="signature" * ), * ) * ), * @SWG\Response( * response="403", * description="fail", * @SWG\Schema(ref="#/definitions/ErrorBean") * ) * ) */ public function accountConfig() { $data = WechatLogic::accountConfigLogic(); return $this->success($data); } }