Commit 82bc74dc authored by chenzq's avatar chenzq

修复名片口令问题

parent 4f02dcaf
...@@ -161,15 +161,16 @@ if (empty($user_info)) { ...@@ -161,15 +161,16 @@ if (empty($user_info)) {
$data['create_time'] = time(); $data['create_time'] = time();
if ($config && $config['code']) { if ($config && $config['code']) {
if (!$code) { if (!$code) {
return $this->result(-1, 'need code', $info); $result = pdo_insert('longbing_company_user_info', $data);
//return $this->result(-1, 'need code', $info);
} }
elseif ($code != $config['code']) {
if ($code != $config['code']) {
return $this->result(-1, 'code error', $info); return $this->result(-1, 'code error', $info);
} }
}
}
$result = pdo_insert('longbing_company_user_info', $data); $result = pdo_insert('longbing_company_user_info', $data);
} }
else { else {
if (!$user_info['create_time']) { if (!$user_info['create_time']) {
......
...@@ -46,9 +46,9 @@ $encryptedData = $_GPC['encryptedData']; ...@@ -46,9 +46,9 @@ $encryptedData = $_GPC['encryptedData'];
$iv = $_GPC['iv']; $iv = $_GPC['iv'];
$this->checkEmpty(); $this->checkEmpty();
/*if (!$code) { if (!$code) {
return $this->result(-1, 'need code', array()); return $this->result(-1, 'need code', array());
}*/ }
if (!$pid) { if (!$pid) {
$pid = 0; $pid = 0;
......
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