|
...
|
...
|
@@ -174,6 +174,7 @@ class _SmsRechargePageState extends State<SmsRechargePage> { |
|
|
|
print(rechargeModel.sunModel.package.substring(10));
|
|
|
|
Map<String, String> str = {
|
|
|
|
'appid': rechargeModel.sunModel.appId,
|
|
|
|
// 'appid': 'wx85aa3cdd0f791e65',
|
|
|
|
'partnerid': '1489405762',
|
|
|
|
'prepayid':
|
|
|
|
rechargeModel.sunModel.package.substring(10),
|
|
...
|
...
|
@@ -192,24 +193,31 @@ class _SmsRechargePageState extends State<SmsRechargePage> { |
|
|
|
print(sign);
|
|
|
|
print(rechargeModel.sunModel.paySign);
|
|
|
|
|
|
|
|
print('appId${rechargeModel.sunModel.appId}');
|
|
|
|
print(
|
|
|
|
'prepayId${rechargeModel.sunModel.package.substring(10)}');
|
|
|
|
print('nonceStr${rechargeModel.sunModel.nonceStr}');
|
|
|
|
print('timeStamp${rechargeModel.sunModel.timeStamp}');
|
|
|
|
print('sign${sign}');
|
|
|
|
|
|
|
|
//掉起微信支付
|
|
|
|
fluwx
|
|
|
|
.payWithWeChat(
|
|
|
|
// appId: 'wx85aa3cdd0f791e65',
|
|
|
|
// appId: 'wx71921f840e8f1c34',
|
|
|
|
appId: rechargeModel.sunModel.appId,
|
|
|
|
partnerId: '1489405762',
|
|
|
|
prepayId: rechargeModel.sunModel.package
|
|
|
|
.substring(10),
|
|
|
|
packageValue: 'Sign=WXPay',
|
|
|
|
nonceStr: rechargeModel.sunModel.nonceStr,
|
|
|
|
timeStamp: int.parse(
|
|
|
|
rechargeModel.sunModel.timeStamp),
|
|
|
|
// sign: sign
|
|
|
|
sign: sign,
|
|
|
|
// signType: rechargeModel.sunModel.signType
|
|
|
|
// signType: rechargeModel.sunModel.signType)
|
|
|
|
)
|
|
|
|
// appId: 'wx85aa3cdd0f791e65',
|
|
|
|
// appId: 'wx71921f840e8f1c34',
|
|
|
|
appId: rechargeModel.sunModel.appId,
|
|
|
|
partnerId: '1489405762',
|
|
|
|
prepayId:
|
|
|
|
rechargeModel.sunModel.package.substring(10),
|
|
|
|
packageValue: 'Sign=WXPay',
|
|
|
|
nonceStr: rechargeModel.sunModel.nonceStr,
|
|
|
|
timeStamp:
|
|
|
|
int.parse(rechargeModel.sunModel.timeStamp),
|
|
|
|
// sign: sign
|
|
|
|
sign: sign,
|
|
|
|
// signType: rechargeModel.sunModel.signType
|
|
|
|
// signType: rechargeModel.sunModel.signType)
|
|
|
|
)
|
|
|
|
.then((data) {
|
|
|
|
print("---》$data");
|
|
|
|
}).catchError((error) {
|
...
|
...
|
|