Commit 82bc74dc authored by chenzq's avatar chenzq

修复名片口令问题

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