Commit 4155fd28 by Wyh Committed by 宁斌

6.04 修改了支付

parent c4925933
...@@ -343,7 +343,7 @@ class PageViewModel(private val repository: WeatherRepository) : ViewModel() { ...@@ -343,7 +343,7 @@ class PageViewModel(private val repository: WeatherRepository) : ViewModel() {
// updateOrderStatus(data.Id.toString(), "", status, "", "", isPush, data.order_type).apply { // updateOrderStatus(data.Id.toString(), "", status, "", "", isPush, data.order_type).apply {
// listener.invoke(success) // listener.invoke(success)
// } // }
repository.gsUpdateOrderStatus(data.Id.toString(), status, data.order_type, 1, "", "", "", "0", "", 1, 0).apply { repository.gsUpdateOrderStatus(data.Id.toString(), status, data.order_type, 3, "", "", "", "0", "", 1, 0).apply {
listener.invoke(code == "1") listener.invoke(code == "1")
} }
}, { }, {
......
...@@ -271,6 +271,7 @@ class OtherOrderActivity : BaseActivity() { ...@@ -271,6 +271,7 @@ class OtherOrderActivity : BaseActivity() {
bind.setOnPostCallBack(object : GetInfoUpdateService.PostCallBack { bind.setOnPostCallBack(object : GetInfoUpdateService.PostCallBack {
override fun callBack(type: Int) { override fun callBack(type: Int) {
//-1斷開連接,\n-2:消息傳輸錯誤,\n0:連接消息,\n1:登錄通知,\n2:登出通知,\n3:外賣送單通知,\n4:自取送單通知,\n5:歷史訂單通知,\n6:修改訂單狀態通知,\n7:支付成功通知" //-1斷開連接,\n-2:消息傳輸錯誤,\n0:連接消息,\n1:登錄通知,\n2:登出通知,\n3:外賣送單通知,\n4:自取送單通知,\n5:歷史訂單通知,\n6:修改訂單狀態通知,\n7:支付成功通知"
Log.e("message", "消息類型$type")
if (type == 3 || type == 4 || type == 5 if (type == 3 || type == 4 || type == 5
|| type == 6 || type == 7) { || type == 6 || type == 7) {
if (type == 6 || type == 7) { if (type == 6 || type == 7) {
......
...@@ -46,6 +46,7 @@ class PlaceholderFragment : BaseFragment() { ...@@ -46,6 +46,7 @@ class PlaceholderFragment : BaseFragment() {
// page = 1 // page = 1
// getOrderList(this, false) // getOrderList(this, false)
// } // }
Log.e("eee", "$it 當前:" + arguments?.getInt(INDEX))
if (arguments?.getInt(INDEX) == it) { if (arguments?.getInt(INDEX) == it) {
page = 1 page = 1
getOrderList(this, false) getOrderList(this, false)
......
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