Commit 3735bcc4 authored by zhang_z's avatar zhang_z

修改;

parent 8d3b7dfd
...@@ -66,22 +66,22 @@ public class C { ...@@ -66,22 +66,22 @@ public class C {
/** /**
* 测试环境(客户演示使用)sn:test01,设备号:AECRC10 * 测试环境(客户演示使用)sn:test01,设备号:AECRC10
*/ */
public static final String URL_TEST = "http://121.40.56.52:8080/"; private static final String URL_TEST = "http://tk.51zzd.cn:8080/";
/** /**
* 开发平台(开发人员使用) * 开发平台(开发人员使用)
*/ */
static final String URL_DEMO = "http://demo.51zzd.cn:8080/"; private static final String URL_DEMO = "http://demo.51zzd.cn:8080/";
/** /**
* 生产平台 * 生产平台
*/ */
public static final String URL_ONLINE = "http://tk.51zzd.com/"; private static final String URL_ONLINE = "http://tk.51zzd.com/";
/** /**
* 地址 * 地址
*/ */
public static final String BASE_URL = URL_DEMO; public static final String BASE_URL = URL_TEST;
private static final String PKG = "/tk/"; private static final String PKG = "/tk/";
......
...@@ -135,6 +135,7 @@ public class SettleActivity extends BaseActivity<SettlePresenter, ActivitySettle ...@@ -135,6 +135,7 @@ public class SettleActivity extends BaseActivity<SettlePresenter, ActivitySettle
mPasswordDialog.setSaleorder(saleorder).show(this); mPasswordDialog.setSaleorder(saleorder).show(this);
break; break;
case C.PAY_CHANNEL.BANK: case C.PAY_CHANNEL.BANK:
// mPresenter.payInBank();
break; break;
case C.PAY_CHANNEL.ALI: case C.PAY_CHANNEL.ALI:
this.showTitleBarByTitleMode(C.TITLE_MODE.TEXT); this.showTitleBarByTitleMode(C.TITLE_MODE.TEXT);
......
package com.xingdata.zzdpos.ui.settle; package com.xingdata.zzdpos.ui.settle;
import com.blankj.utilcode.util.LogUtils;
import com.blankj.utilcode.util.StringUtils; import com.blankj.utilcode.util.StringUtils;
import com.blankj.utilcode.util.ToastUtils; import com.blankj.utilcode.util.ToastUtils;
import com.xingdata.api.print.ZX_PrintPOS; import com.xingdata.api.print.ZX_PrintPOS;
...@@ -332,6 +333,23 @@ public class SettlePresenter extends SettleContract.Presenter { ...@@ -332,6 +333,23 @@ public class SettlePresenter extends SettleContract.Presenter {
@Override @Override
public void payInBank() { public void payInBank() {
commitOrder(
).flatMap(orderNo -> {
//获取支付中心参数
return ApiFactory.Pay.getPayKey();
}).flatMap(json -> {
//初始化支付中心,并发送支付指令
return PayCenter.getInstance().init(json).pay(C.PAY_CHANNEL.WECHAT, mSaleorder.getOrderPayAmt());
}).doFinally(() -> {
mView.dismissLoadingDialog();
}).subscribe(
response -> {
LogUtils.d(response.getMsg());
},
throwable -> {
LogUtils.e(throwable.getMessage());
}
);
} }
@Override @Override
......
...@@ -57,8 +57,8 @@ public final class SystemUtil { ...@@ -57,8 +57,8 @@ public final class SystemUtil {
e.printStackTrace(); e.printStackTrace();
} }
} }
return "0818562"; // return "0818562";
// return "test8988"; return "test2018";
} }
/** /**
......
...@@ -67,11 +67,11 @@ public class C { ...@@ -67,11 +67,11 @@ public class C {
/** /**
* 渠道 * 渠道
*/ */
public static final class HOST { static final class HOST {
/** /**
* 惠尔丰平台的渠道编号 * 惠尔丰平台的渠道编号
*/ */
public final static int PAX = 10000; final static int PAX = 100000;
} }
/** /**
......
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