Files
mier-php/application/api/controller/FaceVerify.php

29 lines
668 B
PHP
Raw Normal View History

2025-08-11 10:22:05 +08:00
<?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']);
}
}