Skip to content

Commit

Permalink
V1.4.5-18:fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhen40 committed Aug 3, 2021
1 parent e5cc278 commit 89eab39
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
6 changes: 6 additions & 0 deletions app/src/main/java/zhaoyang/soap/KotlinTestActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ class KotlinTestActivity : AppCompatActivity(), CoroutineScope by MainScope() {

val userInfo = Gson().fromJson(result, UserInfo::class.java)
Log.d("test", userInfo.toString())

val result2 = Api.ktxService().getBpjhListForPeisong(userInfo.getCompNo(), "","","","","","")
Log.d("test", result2.toString())
} catch (e: Exception) {
withContext(Dispatchers.Main){
textView.text = e.message
}
Log.e("test", e.message, e)
}
}
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/java/zhaoyang/soap/KtxService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ interface KtxService {
@WebParam(name = "shebei") shebei: String?
): String

suspend fun getBpjhListForPeisong(
@WebParam(name = "sn") sn: String,
@WebParam(name = "ipage") ipage: String,
@WebParam(name = "pagesize") pagesize: String,
@WebParam(name = "xmName") xmName: String,
@WebParam(name = "jhName") jhName: String,
@WebParam(name = "fpStartTime") fpStartTime: String,
@WebParam(name = "fpEndTime") fpEndTime: String
): String

//fun login(
// @WebParam(name = "username") username: String?,
// @WebParam(name = "password") password: String?,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/zhaoyang/soap/UserInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public int getAppType() {
}

public String getCompNo() {
return sn;
return compNo;
}

public void setCompNo(String sn) {
Expand Down
4 changes: 2 additions & 2 deletions soap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 22
versionCode 17
versionName "1.4.4"
versionCode 18
versionName "1.4.5"
}
buildTypes {
release {
Expand Down
5 changes: 2 additions & 3 deletions soap/src/main/java/com/zyy/soap/Soap.java
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,8 @@ private String newStringCall(Class<?> service, Method method, String baseUrl, Ob
RxLog.log(mSoapRequest.getNameSpace(), mSoapRequest.getEndPoint(),
mSoapRequest.getMethodName(),
mSoapRequest.getParams(), result,
new Exception(ResultUtil.getErrorCodeMsg(result
, builderSystem)));
throw new Exception(ResultUtil.getErrorCodeMsg(result, builderSystem));
new Exception(result));
throw new RuntimeException(ResultUtil.getErrorCodeMsg(result, builderSystem));
}

}
Expand Down

0 comments on commit 89eab39

Please sign in to comment.