Commit d3cc17ee authored by zhaopengxiang's avatar zhaopengxiang

微信多次退款发起流程异常

parent f5b6fb4f
package com.miya.fastcashier.repository package com.miya.fastcashier.repository
import android.text.TextUtils import android.text.TextUtils
import android.util.Log
import androidx.annotation.WorkerThread import androidx.annotation.WorkerThread
import com.blankj.utilcode.util.LogUtils import com.blankj.utilcode.util.LogUtils
import com.miya.fastcashier.service.AccountService import com.miya.fastcashier.service.AccountService
...@@ -227,11 +228,16 @@ object PayRepository { ...@@ -227,11 +228,16 @@ object PayRepository {
return miYaMobilePayResult.payServiceResponse return miYaMobilePayResult.payServiceResponse
} else if (!TextUtils.isEmpty(miYaMobilePayResult.errorMsg)) { } else if (!TextUtils.isEmpty(miYaMobilePayResult.errorMsg)) {
throw RuntimeException(miYaMobilePayResult.errorMsg) throw RuntimeException(miYaMobilePayResult.errorMsg)
} else if (miYaMobilePayResult.payServiceResponse != null && !TextUtils.isEmpty( } else if (miYaMobilePayResult.payServiceResponse != null &&
miYaMobilePayResult.payServiceResponse.chanelErrorMsg !TextUtils.isEmpty(miYaMobilePayResult.payServiceResponse.chanelErrorMsg)
)
) { ) {
throw RuntimeException(miYaMobilePayResult.payServiceResponse.chanelErrorMsg) if ("[微信]订单支付成功(有退款)".equals(miYaMobilePayResult.payServiceResponse.chanelErrorMsg)) {
//微信多次退款会有该提示,视为查询成功状态
return miYaMobilePayResult.payServiceResponse
} else {
throw RuntimeException(miYaMobilePayResult.payServiceResponse.chanelErrorMsg)
}
} else { } else {
throw RuntimeException("支付异常!") throw RuntimeException("支付异常!")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment