Commit 3df8859a authored by mengcuiguang2's avatar mengcuiguang2

产品界面添加提交订单接口

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