活动:整理代码
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user