1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| //import HCookie from './HCookie'
| import axios from 'axios'
| // 人脸识别
| function FaceCheck() {
|
| }
|
| FaceCheck.prototype.setToken = function() {
| axios({
| method: 'get',
| url: 'https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=DYVX8KZy1AUMZ07xLu55r9Ht&client_secret=ThLtEMdGrKBx6y2Tv6tdnOmRvqdXKYWE',
| headers: {'Content-Type': 'application/json'},
| }).then((res)=>{
| console.log(res);
| }).catch(()=>{
| console.log(123);
| });
| };
|
| export default FaceCheck;
|
|