Commit 8d03c471 authored by fengruiyu's avatar fengruiyu

Merge branch 'dev_1.0.0' of http://39.97.65.143:81/android/android_street into fry_dev

parents fd038c65 3df8859a
......@@ -68,7 +68,7 @@ interface MainApi {
/**
* 支付成功
*/
@POST("api/trade/queryVipOrder")
@POST("api/queryVipOrder")
fun queryVipOrder(@Body vo:@JvmSuppressWildcards Map<String,Any>):Observable<Response<BaseResponse<Any>>>
/**
......
......@@ -352,7 +352,8 @@ class OpenvipActivity : BaseActivity<ActivityOpenvipBinding, OpenvipViewModel>()
if (isPay) {
//支付成功
UserManager.INSTANCE.setVipFlag(true)
com.blankj.utilcode.util.ToastUtils.showShort("支付成功")
viewModel.queryVipOrder(wxParanBean.tid)
com.blankj.utilcode.util.ToastUtils.showLong("支付成功")
finish()
}
}) { throwable ->
......@@ -366,7 +367,8 @@ class OpenvipActivity : BaseActivity<ActivityOpenvipBinding, OpenvipViewModel>()
if (isPay) {
//支付成功
UserManager.INSTANCE.setVipFlag(true)
com.blankj.utilcode.util.ToastUtils.showShort("支付成功")
viewModel.queryVipOrder(wxParanBean.tid)
com.blankj.utilcode.util.ToastUtils.showLong("支付成功")
finish()
}
}) { throwable ->
......
......@@ -94,7 +94,7 @@ class OpenvipViewModel(application: Application) : BaseViewModel(application) {
/**
* 支付成功
*/
fun queryVipOrder(tid: String) {
fun queryVipOrder(tid: Long) {
val vo = HashMap<String, Any>()
vo["tid"] = tid
ApiModel.queryVipOrder(lifecycleProvider, vo).safeSubscribe(
......
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