Quellcode durchsuchen

1. 修改接口 yfc-mobile -> yfc-admin
2. 取药、通知取药接口应该使用订单号(orderNo)

cc12458 vor 2 Wochen
Ursprung
Commit
a760751696

+ 5 - 5
app/src/main/java/com/jiuchen/cloudclinic/mvp/MainCovenant.java

@@ -27,16 +27,16 @@ public interface MainCovenant {
     interface MvpStores {
 
         @FormUrlEncoded
-        @POST("/manager/yfc-mobile/prescription/medicineChestAPI/scanLabel")
+        @POST("/manager/yfc-admin/prescription/medicineChestAPI/scanLabel")
         Observable<BaseModel<LableInfo>> getLabel(@Field("preNo") String preNo);
 
         @FormUrlEncoded
-        @POST("/manager/yfc-mobile/prescription/medicineChestAPI/getawayVerify")
-        Observable<BaseModel<Object>> getMedicine(@Field("preNo") String preNo);
+        @POST("/manager/yfc-admin/prescription/medicineChestAPI/getawayVerify")
+        Observable<BaseModel<Object>> getMedicine(@Field("orderNo") String preNo);
 
         @FormUrlEncoded
-        @POST("/manager/yfc-mobile/prescription/medicineChestAPI/callForMedicationCollection")
-        Observable<BaseModel> notify(@Field("preNo") String preNo);
+        @POST("/manager/yfc-admin/prescription/medicineChestAPI/callForMedicationCollection")
+        Observable<BaseModel> notify(@Field("orderNo") String preNo);
     }
 
     interface Presenter {

+ 1 - 1
app/src/main/java/com/jiuchen/cloudclinic/mvp/cupboard/PutCovenant.java

@@ -22,7 +22,7 @@ public interface PutCovenant {
     interface MvpStores {
 
         @FormUrlEncoded
-        @POST("/manager/yfc-mobile/prescription/medicineChestAPI/putaway")
+        @POST("/manager/yfc-admin/prescription/medicineChestAPI/putaway")
         Observable<BaseModel<PutCupboardInfo>> put(@Field("preNo") String preNo,
                                              @Field("containerNo") String containerNo);
     }

+ 2 - 2
app/src/main/java/com/jiuchen/cloudclinic/mvp/login/LoginCovenant.java

@@ -33,10 +33,10 @@ public interface LoginCovenant {
 
     interface MvpStores {
 
-        @POST("/manager/yfc-mobile/login/v2")
+        @POST("/manager/yfc-admin/login/v2")
         Observable<BaseModel<LoginInfo>> getLogin(@Body RequestBody requestBody);
 
-        @GET("/manager/yfc-mobile/getInfo")
+        @GET("/manager/system/user/getInfo")
         Observable<BaseModel<UserAllInfo>> getUserInfo();
 
     }

+ 1 - 1
maven.gradle

@@ -5,7 +5,7 @@ static def addCommonMaven(RepositoryHandler handler) {
     // 华为开源镜像:https://mirrors.huaweicloud.com
     handler.maven { url 'https://repo.huaweicloud.com/repository/maven' }
     // JitPack 远程仓库:https://jitpack.io
-    handler.maven { url 'https://jitpack.io' }
+    handler.maven { url 'https://www.jitpack.io' }
     // MavenCentral 远程仓库:https://mvnrepository.com
     handler.mavenCentral()
     handler.google()