关闭vivo的调试模式, 修改vivo打包的key

This commit is contained in:
zhl 2020-11-23 16:15:39 +08:00
parent 777d2a89e9
commit e571551e70
4 changed files with 14 additions and 12 deletions

View File

@ -6,4 +6,7 @@ key/publish_key
key store pass: 7654321Kingsome_
key alias: release
key pass: 7654321Kingsome_
vivo 使用vivo的alias
oppo 使用oppo
```

View File

@ -18,7 +18,7 @@ public class JCApplication extends Application {
super.onCreate();
Log.i("JCApplication", "JCApplication onCreate");
String appId = this.getString(R.string.app_id);
VivoUnionSDK.initSdk(this, appId, true);
VivoUnionSDK.initSdk(this, appId, false);
/**
* 掉单注册接口 需要接入掉单补单处理的一定要加

View File

@ -282,24 +282,23 @@ public class MainActivity extends Activity {
Log.i(TAG, "receive pay: " + message);
try {
JSONObject jsonObject = new JSONObject(message);
String cpOrderId = jsonObject.getString("orderid");
String productCode = jsonObject.getString("goodid");
int count = jsonObject.getInt("count");
String money = jsonObject.getString("money"); // 未传
String notifyUrl = jsonObject.getString("notifyUrl"); // 未传
String productName = jsonObject.getString("productName"); // 未传
String productDesc = jsonObject.getString("productDesc"); //未传
String sign = jsonObject.getString("sign"); // 未传
cpPayOrderNumber = jsonObject.getString("cpOrderNumber");
cpOrderAmount = jsonObject.getString("orderAmount");
String notifyUrl = jsonObject.getString("notifyUrl");
String productName = jsonObject.getString("productName");
String productDesc = jsonObject.getString("productDesc");
String sign = jsonObject.getString("vivoSignature");
String extuid = jsonObject.getString("extuid");
//TODO: 平台的支付
VivoPayInfo vivoPayInfo = new VivoPayInfo.Builder()
.setAppId(appId)
.setCpOrderNo(cpOrderId)
.setCpOrderNo(cpPayOrderNumber)
.setNotifyUrl(notifyUrl)
.setOrderAmount(money)
.setOrderAmount(cpOrderAmount)
.setProductName(productName)
.setProductDesc(productDesc)
.setVivoSignature(sign)
.setExtUid(mUid)
.setExtUid(extuid)
.build();
VivoUnionHelper.payV2(this, vivoPayInfo, mVivoPayCallback);
} catch (JSONException e) {

Binary file not shown.