测试:修改测试用例
This commit is contained in:
@@ -156,10 +156,10 @@ describe('活动测试', function () {
|
|||||||
|
|
||||||
it('大富翁-移动', function (done) {
|
it('大富翁-移动', function (done) {
|
||||||
if (activityId) {
|
if (activityId) {
|
||||||
requestActivity(pinusClient, 'role.heroHandler.addItem', { id: CURRENCY_BY_TYPE.get(CURRENCY_TYPE.SPECIAL_DICE), count: 1 })
|
requestActivity(pinusClient, 'role.heroHandler.addItem', { id: CURRENCY_BY_TYPE.get(CURRENCY_TYPE.NORMAL_DICE), count: 1 })
|
||||||
.then((data: any) => {
|
.then((data: any) => {
|
||||||
checkSuccessResponse(data);
|
checkSuccessResponse(data);
|
||||||
return requestActivity(pinusClient, 'activity.activityMonopolyHandler.move', { activityId: activityId, step: 1 })
|
return requestActivity(pinusClient, 'activity.activityMonopolyHandler.move', { activityId: activityId, step: 0 })
|
||||||
})
|
})
|
||||||
.then((data: any) => {
|
.then((data: any) => {
|
||||||
checkSuccessResponse(data);
|
checkSuccessResponse(data);
|
||||||
|
|||||||
@@ -12,11 +12,12 @@ export default class GameController extends Controller {
|
|||||||
public async checkVersion() {
|
public async checkVersion() {
|
||||||
const { ctx } = this;
|
const { ctx } = this;
|
||||||
const { version } = ctx.request.body;
|
const { version } = ctx.request.body;
|
||||||
if (version < CLIENT_VERSION) {//版本号太低
|
if (version >= CLIENT_VERSION) {
|
||||||
ctx.body = ctx.service.utils.resResult(STATUS.VERSION_ERR, { version: CLIENT_VERSION });
|
ctx.body = ctx.service.utils.resResult(STATUS.SUCCESS);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ctx.body = ctx.service.utils.resResult(STATUS.SUCCESS);
|
//版本号太低
|
||||||
|
ctx.body = ctx.service.utils.resResult(STATUS.VERSION_ERR, { version: CLIENT_VERSION });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user