|
@@ -135,6 +135,10 @@ class Applet extends Base
|
|
|
$vid = Dever::input('vid');
|
|
|
$result = array();
|
|
|
$mobile = $phoneNumber = '';
|
|
|
+
|
|
|
+ $iv = Dever::input('iv');
|
|
|
+ $encryptedData = Dever::input('encryptedData');
|
|
|
+
|
|
|
if ($iv && $encryptedData) {
|
|
|
$vinfo = Dever::load('passport/wechat-one', $vid);
|
|
|
$data = $this->decryptData($vinfo['session_key']);
|
|
@@ -184,7 +188,7 @@ class Applet extends Base
|
|
|
if ($vid) {
|
|
|
$vinfo = Dever::load('passport/wechat-one', $vid);
|
|
|
|
|
|
- $unionid = $this->unionid($vinfo['session_key'], $iv);
|
|
|
+ $unionid = $this->unionid($vinfo['session_key']);
|
|
|
if ($unionid) {
|
|
|
$vinfo = Dever::load('passport/wechat-one', array('option_unionid' => $unionid));
|
|
|
if (!$vinfo) {
|