Commit 3e18d4e9 authored by limingzhe's avatar limingzhe

fix: debug

parent be598ac5
No preview for this file type
{"ver":"1.1.2","uuid":"d37d6cc8-eb4f-4cec-8d17-f1747de82efe","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "d37d6cc8-eb4f-4cec-8d17-f1747de82efe",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
......@@ -2833,18 +2833,37 @@ cc.Class({
// console.log('len: ', len);
if (labelText.length == 1) {
if (labelText.toLowerCase().indexOf(targetLabelText.toLowerCase()) != -1 ) {
const index = labelText.indexOf("||");
if (index != -1) {
const keyArr = labelText.split("||");
for (let j=0; j<keyArr.length; j++) {
if (targetLabelText.indexOf(keyArr[j]) != -1 ) {
answerData[key] = {isFinish: true};
break;
}
}
} else {
if (labelText == targetLabelText) {
if (targetLabelText.indexOf(labelText) != -1 ) {
answerData[key] = {isFinish: true};
}
}
// if (labelText.length == 1) {
// if (labelText.toLowerCase().indexOf(targetLabelText.toLowerCase()) != -1 ) {
// answerData[key] = {isFinish: true};
// }
// } else {
// if (labelText == targetLabelText) {
// answerData[key] = {isFinish: true};
// }
// }
}
......
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