初始版本可以去申请电子版权和软著了
This commit is contained in:
@@ -446,3 +446,4 @@ export class GameDataManager {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -224,8 +224,8 @@ export class WxCloudApi{
|
||||
* @param amount 消耗的数量
|
||||
* @return Promise<CloudCallFunctionResult<CloudReturnType<{field: string, old_value: number, new_value: number, change: number}>>>
|
||||
*/
|
||||
public static async spendGameDataField(field:string, amount: number): Promise<CloudCallFunctionResult<CloudReturnType<{
|
||||
field: string,
|
||||
public static async spendGameDataField(field:string|Record<string, number>, amount: number): Promise<CloudCallFunctionResult<CloudReturnType<{
|
||||
field: string|Record<string, number>,
|
||||
old_value: number,
|
||||
new_value: number,
|
||||
change: number
|
||||
@@ -529,7 +529,7 @@ export class WxCloudApi{
|
||||
* @param levels 升级级数(默认1级)
|
||||
* @return Promise<CloudCallFunctionResult<CloudReturnType<{hero_id: number, property: string, old_value: number, new_value: number}>>>
|
||||
*/
|
||||
public static async levelUpHero(heroId: number, exp:number,gold:number,levels: number = 1): Promise<CloudCallFunctionResult<CloudReturnType<{
|
||||
public static async levelUpHero(heroId: number,levels: number = 1): Promise<CloudCallFunctionResult<CloudReturnType<{
|
||||
hero_id: number,
|
||||
property: string,
|
||||
old_value: number,
|
||||
@@ -540,8 +540,6 @@ export class WxCloudApi{
|
||||
data: {
|
||||
cmd: "hero_levelup",
|
||||
hero_id: heroId,
|
||||
exp: exp,
|
||||
gold:gold,
|
||||
levels: levels
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user