Commit 8d8c84d4 authored by haiyoucuv's avatar haiyoucuv

1

parent 05e3f832
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -36,7 +36,7 @@ exports.start = function (options) {
setTimeout(function () {
watching = true;
}, 500);
})
});
});
console.log('Code server started on port:', options.port);
......
......@@ -7,8 +7,12 @@ declare const vm: engine.VM;
declare function next(type: string, payload?: any);
declare module engine {
export const queryParams;
export const VERSION = "1.0";
export function toDisplayDataURL(obj: DisplayObject, rect: Rectangle = null, typeInfo: any = null, bgColor: number = 0x000000): string
export function addCustomModule(id, container: Container, options?): Container;
export function findVariable(name, ...contexts);
......
let baseCode = engine.toDisplayDataURL(props.node)
next('base64', baseCode);
if (args.count > 0) {
let userSpList = global.dataCenter.getDataByName('userSpList');
next('true', {
text: `今天有${args.count}位好友给你助力
获得${userSpList['sp_2']}次额外翻牌机会`
});
} else {
next('false')
}
\ No newline at end of file
let userSpList = global.dataCenter.getDataByName('userSpList');
for(let i = 1; i <= 6; i++) {
if(userSpList[`sp_card_${i}`] <= 0) {
next('false');
return;
}
}
next('true');
return;
\ No newline at end of file
let baseCode = engine.toDisplayDataURL(props.node)
next('base64', baseCode);
if(props.propName) {
if(engine.queryParams.hasOwnProperty(props.propName)){
next('have', engine.queryParams[props.propName]);
}else {
next('nohave');
}
} else {
next('have', engine.queryParams);
}
return;
\ No newline at end of file
{
"name": "Test1",
"name": "temp",
"props": {
},
"assets": [
{
"url": "//yun.duiba.com.cn/aurora/af90069732223c75818c4799b3130bd0f0ad4ff8.png",
"ext": ".png"
}
]
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment