初始化角色时就给以下道具
This commit is contained in:
@@ -240,6 +240,16 @@ export const WAR_JSON_ATTRIBUTE_TYPE = {
|
||||
export const EVENT_QUIZ_NUM = 3;
|
||||
|
||||
export const DEFAULT_HEROES = [ 312, 314, 311, 309, 315];
|
||||
export const DEFAULT_ITEMS = [
|
||||
{id: 33106, count: 200},
|
||||
{id: 33107, count: 200},
|
||||
{id: 33108, count: 200},
|
||||
{id: 33109, count: 200},
|
||||
{id: 33110, count: 200},
|
||||
{id: 40002, count: 20000},
|
||||
];
|
||||
export const DEFAULT_GOLD = 20000;
|
||||
export const DEFAULT_LV = 60;
|
||||
|
||||
export const FIX_SMS_CODE_TELS = ['18855953630', '13911134885', '15167549151', '15618654010', '15167549151', '15000250967','19921300694','13636354764'];
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ export default class Role extends BaseModel {
|
||||
return role;
|
||||
}
|
||||
|
||||
public static async createRole(uid: number, serverId: number, roleInfo: {roleId: string; roleName: string; seqId: number; code: string}, lean = true) {
|
||||
public static async createRole(uid: number, serverId: number, roleInfo: {roleId: string; roleName: string; seqId: number; code: string, lv?:number, exp?:number}, lean = true) {
|
||||
const user = await User.findUserByUid(uid);
|
||||
if (!user) return null;
|
||||
const doc = new RoleModel();
|
||||
|
||||
Reference in New Issue
Block a user