|
@@ -42,7 +42,7 @@ class CommonController extends Controller
|
|
'latitude|纬度' => 'numeric',
|
|
'latitude|纬度' => 'numeric',
|
|
'longitude|纬度' => 'numeric',
|
|
'longitude|纬度' => 'numeric',
|
|
]);
|
|
]);
|
|
- $app = Factory::miniProgram(config('config.wechat_small_program'));
|
|
|
|
|
|
+ $app = Factory::miniProgram(config('config.docter_wechat_small_program'));
|
|
|
|
|
|
$data = $app->auth->session($req['wechat_code']);
|
|
$data = $app->auth->session($req['wechat_code']);
|
|
|
|
|
|
@@ -115,7 +115,7 @@ class CommonController extends Controller
|
|
'openid' => 'required',
|
|
'openid' => 'required',
|
|
]);
|
|
]);
|
|
|
|
|
|
- $app = Factory::miniProgram(config('config.wechat_small_program'));
|
|
|
|
|
|
+ $app = Factory::miniProgram(config('config.docter_wechat_small_program'));
|
|
// $data = $app->auth->session($req['code']);
|
|
// $data = $app->auth->session($req['code']);
|
|
// if (empty($data['openid'])){
|
|
// if (empty($data['openid'])){
|
|
// return out(null, 10001, '微信登录code错误');
|
|
// return out(null, 10001, '微信登录code错误');
|