|
@@ -14,6 +14,7 @@ import androidx.annotation.Nullable;
|
|
|
import com.sunwin.visitorapp.BaseFragment;
|
|
|
import com.sunwin.visitorapp.R;
|
|
|
import com.sunwin.visitorapp.face.FRImpl;
|
|
|
+import com.sunwin.visitorapp.net.RetrofitUtil;
|
|
|
import com.sunwin.visitorapp.utils.Constant;
|
|
|
import com.sunwin.visitorapp.utils.SharePrefenceUtils;
|
|
|
import com.sunwin.visitorapp.utils.ToastUtils;
|
|
@@ -55,12 +56,12 @@ public class SystemOptionFr extends BaseFragment implements View.OnClickListener
|
|
|
String serverUrl = SharePrefenceUtils.getString(Constant.ISharePrefence.BASEURL, Constant.BASE_HOST);
|
|
|
|
|
|
int lastIndex = serverUrl.lastIndexOf(":");
|
|
|
- mEtIpServer.setText(serverUrl.substring(0,lastIndex));
|
|
|
- mEtIpPort.setText(serverUrl.substring(lastIndex+1,serverUrl.length()-1));
|
|
|
+ mEtIpServer.setText(serverUrl.substring(0, lastIndex));
|
|
|
+ mEtIpPort.setText(serverUrl.substring(lastIndex + 1, serverUrl.length() - 1));
|
|
|
|
|
|
- mEtCompareValue.setText(Constant.COMPARSION_VALUE+"");
|
|
|
- mEtLivenessValue.setText(Constant.LIVENESS_VALUE+"");
|
|
|
- mEtCompareNum.setText(Constant.COMPARSION_FREQUENCY+"");
|
|
|
+ mEtCompareValue.setText(Constant.COMPARSION_VALUE + "");
|
|
|
+ mEtLivenessValue.setText(Constant.LIVENESS_VALUE + "");
|
|
|
+ mEtCompareNum.setText(Constant.COMPARSION_FREQUENCY + "");
|
|
|
|
|
|
|
|
|
}
|
|
@@ -115,6 +116,7 @@ public class SystemOptionFr extends BaseFragment implements View.OnClickListener
|
|
|
return;
|
|
|
}
|
|
|
SharePrefenceUtils.putString(Constant.ISharePrefence.BASEURL, address);
|
|
|
+ RetrofitUtil.initRetrofit();
|
|
|
|
|
|
//人脸比对参数
|
|
|
try {
|