认证信息
This commit is contained in:
@@ -32,9 +32,8 @@ class Verify
|
||||
}
|
||||
|
||||
$username = $post['phone'];
|
||||
$id_code = $post['id'];
|
||||
|
||||
if (empty($username) || empty($id_code)) {
|
||||
if (empty($username)) {
|
||||
$return_data = [
|
||||
'code' => -1,
|
||||
'msg' => '身份证号或手机号不能为空',
|
||||
@@ -45,7 +44,7 @@ class Verify
|
||||
|
||||
$user_model = new User;
|
||||
|
||||
$userinfo = $user_model->getOne(['id_code'=>$id_code], 'is_verify');
|
||||
$userinfo = $user_model->getOne(['LoginCode'=>$username], 'is_verify');
|
||||
|
||||
if ($userinfo['is_verify']) {
|
||||
$return_data = [
|
||||
@@ -64,4 +63,15 @@ class Verify
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function openlimit() {
|
||||
|
||||
$data = $_POST;
|
||||
if (empty($data)) {
|
||||
$data = json_decode(file_get_contents("php://input"), true);
|
||||
}
|
||||
$url = "http://124.236.113.166:18702/api/agent/openIM/apikey/80cf4f64e990b78a9fc5eb/account/".$data['account'];
|
||||
linkcurl($url,'GET',[],[],0);
|
||||
echo json_encode(['code'=>1,]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user