sdk:37支付

This commit is contained in:
luying
2021-11-15 15:18:22 +08:00
parent 69bd2235af
commit 16089586e2
3 changed files with 186 additions and 93 deletions

View File

@@ -1,5 +1,5 @@
import { SDK_37_CONST, STATUS } from "../../consts";
import { RoleModel, RoleType } from "../../db/Role";
import { RoleModel } from "../../db/Role";
import { UserModel } from "../../db/User";
import { LoginValidateData37 } from "../../domain/sdk";
import { DicRMB } from "../../pubUtils/dictionary/DicRMB";
@@ -22,7 +22,7 @@ export async function applyOrder37(localOrderID: string, roleId: string, product
return {
code: -1, resData: resResult(STATUS.CHANNEL_INFO_NOT_FOUND)
}
let gameCoin = productInfo.gameCoin;
let ext = '';
let body = {
game_id: SDK_37_CONST.GAME_ID,
@@ -31,7 +31,7 @@ export async function applyOrder37(localOrderID: string, roleId: string, product
actor_id: role.roleId,
order_no: localOrderID,
money: productInfo.price.toFixed(2).toString(),
game_coin: role.gold,
game_coin: gameCoin,
product_id: productInfo.productID,
subject: productInfo.message,
time: nowSeconds(),
@@ -42,6 +42,7 @@ export async function applyOrder37(localOrderID: string, roleId: string, product
return { code: 0, data: {
gameCoin,
timestamp: nowSeconds(),
ext,
sign: sign