Commit ccbaf651 authored by chenzq's avatar chenzq

之前是设为员工或有推荐人才能修改,现在是新添加的都能获取手机号。 doPagephone

parent 37948e84
...@@ -1844,23 +1844,23 @@ class longbing_companyModuleWxapp extends WeModuleWxapp ...@@ -1844,23 +1844,23 @@ class longbing_companyModuleWxapp extends WeModuleWxapp
$uniacid = $_W['uniacid']; $uniacid = $_W['uniacid'];
$encryptedData = $_GPC['encryptedData']; $encryptedData = $_GPC['encryptedData'];
$iv = $_GPC['iv']; $iv = $_GPC['iv'];
$info = pdo_get('longbing_company_user_phone', array('user_id' => $uid, 'uniacid' => $uniacid)); $info = pdo_get('longbing_company_user_phone', array('user_id' => $uid,'uniacid' => $uniacid));
if ($info) { if ($info) {
return $this->result(0, 'fail', array('phone' => $info['phone'], 'new' => 3, 'iv' => $iv)); return $this->result(0, 'fail', array('phone' => $info['phone'], 'new' => 3, 'iv' => $iv));
} }
/*
if (!$uid || !$to_uid) { if (!$uid || !$to_uid) {
return $this->result(-1, '', array()); return $this->result(-1, '', array());
} }
*/
$appid = $_W['account']['key']; $appid = $_W['account']['key'];
$appsecret = $_W['account']['secret']; $appsecret = $_W['account']['secret'];
$check_sk = pdo_get('longbing_company_user_sk', array('user_id' => $uid)); $check_sk = pdo_get('longbing_company_user_sk', array('user_id' => $uid));
if (!$check_sk) { if (!$check_sk) {
return $this->result(-1, 'need login', array()); return $this->result(-1, 'need login', array());
} }
$session_key = $check_sk['sk']; $session_key = $check_sk['sk'];
include_once 'wxBizDataCrypt.php'; include_once 'wxBizDataCrypt.php';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment