实名认证
This commit is contained in:
@@ -11,7 +11,7 @@ class Realname
|
||||
public function index()
|
||||
{
|
||||
$temp = $_GET;
|
||||
dump($temp);die;
|
||||
dump(realname($temp));die;
|
||||
$user = new User;
|
||||
$data = [
|
||||
'Code'=>10000,
|
||||
|
||||
@@ -130,12 +130,13 @@ function realname($data){
|
||||
$result = json_decode($content,true);
|
||||
if($result){
|
||||
if($result['error_code']=='0'){
|
||||
print_r($result);
|
||||
// print_r($result);
|
||||
return true;
|
||||
}else{
|
||||
echo $result['error_code'].":".$result['reason'];
|
||||
echo $result['error_code'].":".$result['reason'];die;
|
||||
}
|
||||
}else{
|
||||
echo "请求失败";
|
||||
echo "请求失败";die;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user