| @@ -157,9 +157,13 @@ public class ArcSoftFaceCheckManager implements FaceCheckInterface { | |||||
| if (code != 200) { | if (code != 200) { | ||||
| onFail(obj.getString("msg")); | onFail(obj.getString("msg")); | ||||
| } else { | } 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) { | } catch (Exception e) { | ||||
| e.printStackTrace(); | e.printStackTrace(); | ||||
| @@ -169,7 +173,8 @@ public class ArcSoftFaceCheckManager implements FaceCheckInterface { | |||||
| @Override | @Override | ||||
| public void onFail(String error) { | 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); | DigiWebSocketServer.getArcActivateKey(callback); | ||||