|
@@ -28,6 +28,7 @@ class Login extends Base
|
|
|
$app = Factory::miniProgram(config('app.mini_program'));
|
|
|
$data = $app->auth->session($code);
|
|
|
if(empty($data['openid'])) $this->error($data['errmsg']);
|
|
|
+ var_dump($data);
|
|
|
$member = Db::name('store_member')->field('id,phone')->where('openid',$data['openid'])->find();
|
|
|
if(empty($member)){
|
|
|
$member_data = [
|