|
|
@@ -1075,7 +1075,7 @@ export struct UserCenter {
|
|
|
const appName = PreferencesUtil.getStringSync('appName', 'TTMusic');
|
|
|
hilog.info(0x0000, 'UserCenter', `doWxPay: current this.userId is ${this.userId}`);
|
|
|
const prepayId = await createWeChatOrder(CommonConstants.WX_PAY_APPID, CommonConstants.WX_PAY_MCHID,
|
|
|
- appName, Number(plan.price) * 100, pinyin4js.getShortPinyin(this.appName), this.userId, plan.id);
|
|
|
+ appName, Math.round(Number(plan.price) * 100), pinyin4js.getShortPinyin(this.appName), this.userId, plan.id);
|
|
|
if (prepayId) {
|
|
|
await this.wechatPay(prepayId);
|
|
|
} else {
|