活动:整理代码

This commit is contained in:
qiaoxin
2021-07-17 14:49:33 +08:00
parent f363c4f7ba
commit 03e8d88dd1
34 changed files with 50 additions and 61 deletions
+3
View File
@@ -1,6 +1,9 @@
import { expect } from 'chai';
export function checkSuccessResponse(response, withData = true) {
if (response.code != 0) {
console.log('checkSuccessResponse info:', JSON.stringify(response))
}
expect(response).to.be.an('object');
expect(response.code).equal(0);
if (withData) {
+1
View File
@@ -291,6 +291,7 @@ describe('聊天测试', function () {
setTimeout(() => {
if (i === HERO_GROW_MAX.STAR && j > 0) {
} else {
console.log('dddddddddddd', i, j);
pinusClient.request('role.heroHandler.starUp', { hid: XIAHOUQINGYI_HID, star: i, starStage: j }, (starUpRes) => {
if (starUpRes.code === STATUS.ROLE_STAR_REACH_MAX.code) {
pinusClient.request('role.heroHandler.qualityUp', { hid: XIAHOUQINGYI_HID, quality: 2 }, (qualityUpRes) => {