소스 검색

虹软请求地址变更

dev_h5stream
李俊才 1 년 전
부모
커밋
35753aa495
1개의 변경된 파일9개의 추가작업 그리고 4개의 파일을 삭제
  1. +9
    -4
      app/src/main/java/com/aispeech/nativedemo/arcsoft/ArcSoftFaceCheckManager.java

+ 9
- 4
app/src/main/java/com/aispeech/nativedemo/arcsoft/ArcSoftFaceCheckManager.java 파일 보기

@@ -157,9 +157,13 @@ public class ArcSoftFaceCheckManager implements FaceCheckInterface {
if (code != 200) {
onFail(obj.getString("msg"));
} else {
String activeKey = obj.optString("activation_code");
activeArc(activeKey, false);
ConfigUtil.commitArcProdActiveKey(AppContext.getInstance(), activeKey);
String activeKey = obj.optString("data");
if (StringUtils.isEmpty(activeKey)) {
onFail("激活码为空");
} else {
activeArc(activeKey, false);
ConfigUtil.commitArcProdActiveKey(AppContext.getInstance(), activeKey);
}
}
} catch (Exception e) {
e.printStackTrace();
@@ -169,7 +173,8 @@ public class ArcSoftFaceCheckManager implements FaceCheckInterface {

@Override
public void onFail(String error) {
Log.e(this.getClass().getSimpleName(), "new Heartbeat = " + error);
Logger.e("arc error: " + error);
Log.e(TAG, "new Heartbeat = " + error);
}
};
DigiWebSocketServer.getArcActivateKey(callback);


불러오는 중...
취소
저장