|
|
@@ -76,8 +76,8 @@ class Weixin extends BaseController
|
|
|
]);
|
|
|
$mini = Factory::miniProgram(config('weixin')['mini_program']);
|
|
|
$new_mini = $mini->auth->session($post['code']);
|
|
|
- $phone = $mini->encryptor->decryptData($new_mini['session_key'], $post['iv'], $post['encryptedData']);
|
|
|
- dump($phone);
|
|
|
+ $decryptData = $mini->encryptor->decryptData($new_mini['session_key'], $post['iv'], $post['encryptedData']);
|
|
|
+ return app('json')->success($decryptData['phoneNumber']);
|
|
|
}
|
|
|
|
|
|
/**
|