29 lines
668 B
PHP
29 lines
668 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace app\api\controller;
|
||
|
|
|
||
|
|
use think\Controller;
|
||
|
|
|
||
|
|
class FaceVerify extends Common
|
||
|
|
{
|
||
|
|
|
||
|
|
|
||
|
|
//人脸
|
||
|
|
public function verify()
|
||
|
|
{
|
||
|
|
$uid = $this->uid;
|
||
|
|
$reslut = model('FaceVerifyCallback')->verify($this->uid);
|
||
|
|
return ajaxReturn($reslut['code'], $reslut['msg'], $reslut['data']);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function call_back()
|
||
|
|
{
|
||
|
|
$uid = $this->uid;
|
||
|
|
$real_name = input('real_name', '');
|
||
|
|
$card_id = input('card_id', '');
|
||
|
|
$reslut = model('FaceVerifyCallback')->call_back($this->uid, $card_id, $real_name);
|
||
|
|
return ajaxReturn($reslut['code'], $reslut['msg'], $reslut['data']);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|