ソースを参照

从相册选取的操作已完工

詹子聪 5 年 前
コミット
42589b7c1a

+ 13 - 0
app/src/main/java/com/miekir/ocr/api/ApiService.java

@@ -7,6 +7,7 @@ import java.util.Map;
 
 import io.reactivex.Observable;
 import retrofit2.http.Body;
+import retrofit2.http.GET;
 import retrofit2.http.POST;
 
 /**
@@ -14,6 +15,11 @@ import retrofit2.http.POST;
  * @author 詹子聪
  * @date 2020/7/27 11:08
  * Description: 主接口
+ * -10001	Incorrect json input format
+ * -10002	url image cannot be downloaded (N/A in our case)
+ * -10003	SDK error
+ * -10004	Base64 decode error
+ * -10005	Segmentation Error. No Name and Address can be extracted
  */
 public interface ApiService {
     /**
@@ -21,4 +27,11 @@ public interface ApiService {
      */
     @POST("/api/jphandwritingocr/jpExpressHwOcr")
     Observable<BaseResponse<OcrResult>> getOcrResult(@Body Map<String, Object> body);
+
+
+    /**
+     * 测试
+     */
+    @GET(".")
+    Observable<BaseResponse<Object>> getJsonTest();
 }

+ 1 - 1
network/src/main/java/com/miekir/network/constant/RequestConst.java

@@ -13,5 +13,5 @@ public interface RequestConst {
      * todo 改成项目真正的请求域名,或者在调用网络请求之后手动调用以下代码设置请求的Host
      * RetrofitHelper.getInstance().setRequestHost()
      */
-    String BASE_URL = "http://www.jianjieshenghuo.com";
+    String BASE_URL = "http://8.210.64.236:8094";
 }