feat(sis): 1
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
zcxlsm 2025-07-14 11:24:59 +08:00
parent eb8665c872
commit 2d14253d5c

View File

@ -1,41 +0,0 @@
package org.dromara.sis.controller;
import jakarta.annotation.Resource;
import org.dromara.sis.sdk.huawei.HuaWeiBoxApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Base64;
/**
* @author lsm
* @apiNote test
* @since 2025/7/12
*/
@RestController
@RequestMapping("/huawei")
public class test {
@Resource
private HuaWeiBoxApi huaWeiBoxApi;
@GetMapping("/test")
public Long huawei() {
Long a;
try {
byte[] imageByte = Files.readAllBytes(Paths.get("D:\\tool\\face\\2.png"));
a = huaWeiBoxApi.findPerson(Base64.getEncoder().encodeToString(imageByte));
} catch (IOException e) {
throw new RuntimeException(e);
}
return a;
}
}