success(['key' => $key, 'time' => $time]); } /** * 扫码登陆 * @param string $key * @return mixed * @throws \Psr\SimpleCache\InvalidArgumentException */ public function scanLogin(string $key) { return app('json')->success($this->services->scanLogin($key)); } /** * 开放平台扫码登录 * @return mixed * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException */ public function wechatAuth() { return app('json')->success($this->services->wechatAuth()); } /** * 获取公众平台id * @return mixed */ public function getAppid() { return app('json')->success([ 'appid' => sys_config('wechat_open_app_id'), 'version' => get_crmeb_version() ]); } }