diff --git a/app/src/main/assets/apps/__UNI__2B9497D/www/app-service.js b/app/src/main/assets/apps/__UNI__2B9497D/www/app-service.js index 83876f8..40b7130 100644 --- a/app/src/main/assets/apps/__UNI__2B9497D/www/app-service.js +++ b/app/src/main/assets/apps/__UNI__2B9497D/www/app-service.js @@ -1 +1 @@ -(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0a3c":function(t,e,n){"use strict";n("e3f4");var i=a(n("8bbf")),s=a(n("8d89"));function a(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e1?e-1:0),i=1;i1){var u=o.pop();c=o.join("---COMMA---"),0===u.indexOf(" at ")?c+=u:c+="---COMMA---"+u}else c=o[0];console[r](c)}n.r(e),n.d(e,"log",(function(){return r})),n.d(e,"default",(function(){return o}))},"148d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("c677"),s=uni.requireNativePlugin("Zmt-Module"),a=uni.requireNativePlugin("TestModule"),r=uni.requireNativePlugin("uniplugin_module_ox"),o=uni.requireNativePlugin("Face-Module"),c=uni.requireNativePlugin("modal"),u={onLoad:function(){this.initAPPListener()},onReady:function(){this.logs.push("\u5f53\u524d\u65f6\u95f4:"+this.getTime())},data:function(){return{logs:["LOG VIEW"]}},methods:{initAPPListener:function(){var t=this;plus.globalEvent.addEventListener("myEvent",(function(e){c.toast({message:"TestEvent\u6536\u5230\uff1a"+JSON.stringify(e),duration:3.5}),t.log("\u5168\u5c40\u4e8b\u4ef6\u63a5\u6536:"+JSON.stringify(e))}))},faceAsyncFunc:function(){var t=this;this.log("\u6267\u884cfaceModule.faceAsyncFunc"),o.faceAsyncFunc({name:"unimp",age:1},(function(e){c.toast({message:e,duration:1.5}),t.log(JSON.stringify(e))}))},initTcp:function(){var t=this;this.log("Click Tcp Server."),s.initTcp({port:"16666"},(function(e){c.toast({message:e,duration:2}),t.log("invoke:"+JSON.stringify(e))}))},closeTcp:function(){var t=this;this.log("Click Tcp Server."),s.closeTcp({},(function(e){c.toast({message:e,duration:2}),t.log("invoke:"+JSON.stringify(e))}))},testFun2:function(){var t=s.testSyncFunc({name:"unimp",age:1});c.toast({message:t,duration:1.5})},testAsyncFunc:function(){a.testAsyncFunc({name:"unimp",age:1},(function(t){c.toast({message:t,duration:1.5})}))},testSyncFunc:function(){var t=a.testSyncFunc({name:"unimp",age:1});c.toast({message:t,duration:1.5})},testAsyncFunc2:function(){r.testAsyncFunc2({name:"unimp",age:1},(function(t){c.toast({message:t,duration:1.5})}))},testSyncFunc2:function(){var t=r.testSyncFunc2({name:"unimp",age:1});c.toast({message:t,duration:1.5})},log:function(t){this.logs.push(this.getTime()+" ".concat(t))},getTime:function(){return(0,i.timeFormat)(new Date,"mm/dd hh:MM:ss")},gotoNativePage:function(){a.gotoNativePage()}}};e.default=u},"1e9b":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLaunch:function(){t("log","App Launch"," at App.vue:4")},onShow:function(){t("log","App Show"," at App.vue:7")},onHide:function(){t("log","App Hide"," at App.vue:10")}};e.default=n}).call(this,n("0de9")["default"])},"3c60":function(t,e,n){"use strict";n.r(e);var i=n("7be9"),s=n("b5df");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"40a2":function(t,e,n){"use strict";n.r(e);var i=n("499f"),s=n("c3ad");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"499f":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","ball-list"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","bl-line"),attrs:{_i:1}},[n("view"),n("view",{attrs:{_i:3},on:{click:t.returnBtn}})]),n("view",{staticClass:t._$s(4,"sc","bl-tab"),attrs:{_i:4}},[n("view"),n("view"),n("view"),n("view")]),n("scroll-view",{staticClass:t._$s(9,"sc","bl-scroll"),attrs:{_i:9}},[n("view",{staticClass:t._$s(10,"sc","bl-list"),attrs:{_i:10}},[t._l(3,(function(e,i,s,a){return n("view",{key:i,staticClass:t._$s("11-"+a,"sc","bll-item"),attrs:{_i:"11-"+a}},[n("view",{class:t._$s("12-"+a,"c",[i==t.ballList.length-1?"fillet-left":""]),attrs:{_i:"12-"+a}},[t._v(t._$s("12-"+a,"t0-0",t._s(e.goods_name||"555")))]),n("view",[t._v(t._$s("13-"+a,"t0-0",t._s(e.tid_string||"\u5408\u6cd5\u5927\u4f7f\u9986sfghdsfghdjsgdksjdjghdfjkghfd2021-11-11 11:22:54")))]),n("view",[t._v(t._$s("14-"+a,"t0-0",t._s(e.created_at||"123213")))]),n("view",{class:t._$s("15-"+a,"c",[i==t.ballList.length-1?"fillet-right":""]),attrs:{_i:"15-"+a}},[t._v(t._$s("15-"+a,"t0-0",t._s(e.operator_name||"544")))])])})),n("view",{staticClass:t._$s(16,"sc","info-list"),attrs:{_i:16}},t._l(3,(function(e,i,s,a){return n("view",{staticClass:t._$s("17-"+a,"sc","i-item"),attrs:{_i:"17-"+a}},[n("view",{staticClass:t._$s("18-"+a,"sc","i-box"),attrs:{_i:"18-"+a}}),n("view",{staticClass:t._$s("19-"+a,"sc","i-box"),attrs:{_i:"19-"+a}}),n("view",{staticClass:t._$s("20-"+a,"sc","i-box"),attrs:{_i:"20-"+a}}),n("view",{staticClass:t._$s("21-"+a,"sc","i-box"),attrs:{_i:"21-"+a}},[t._v(t._$s("21-"+a,"t0-0",t._s(e[2])))])])})),0)],2)]),t._$s(22,"i",t.isShowBtn)?n("view",{staticClass:t._$s(22,"sc","bl-btn"),attrs:{_i:22}},[n("view",{attrs:{_i:23},on:{click:function(e){return t.btnChange(1)}}}),n("view",[n("text",[t._v(t._$s(25,"t0-0",t._s(t.page||0)))]),n("text",[t._v(t._$s(26,"t0-0",t._s(t.pageTotal||0)))])]),n("view",{attrs:{_i:27},on:{click:function(e){return t.btnChange(2)}}})]):t._e()])},a=[]},5564:function(t,e,n){"use strict";n.r(e);var i=n("741d"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},"741d":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{list:[{id:"ext-module",name:"\u6269\u5c55 module\u6d4b\u8bd5\u5217\u8868",open:!1,url:"/pages/sample/ext-module-vue"},{id:"ext-component",name:"\u6269\u5c55 component",open:!1,url:"/pages/sample/ext-component"},{id:"richAlert",name:"\u63d2\u4ef6\u793a\u4f8bRichAlert",open:!1,url:"/pages/sample/richAlert"}],navigateFlag:!1}},onLoad:function(){},methods:{goScan:function(){t("log",111," at pages/index/index.vue:59"),uni.navigateTo({url:"./scan"})},goBallList:function(){t("log",111," at pages/index/index.vue:66"),uni.navigateTo({url:"./ball_list"})},testScanCancle:function(){uni.scanCode({onlyFromCamera:!0,success:function(e){t("log","\u6761\u7801\u7c7b\u578b\uff1a"+e.scanType," at pages/index/index.vue:76"),t("log","\u6761\u7801\u5185\u5bb9\uff1a"+e.result," at pages/index/index.vue:77")}}),setTimeout((function(){t("log","\u6267\u884c\u8fd4\u56de"," at pages/index/index.vue:81"),uni.navigateBack(),uni.navigateBack()}),3e3)},triggerCollapse:function(t){if(this.list[t].pages)for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t||(t=Number(new Date)),"string"==typeof t&&t.indexOf("-")>0&&(t=t.replace(/\-/g,"/")),10==t.toString().length&&(t*=1e3);var n,i=new Date(t),s={"y+":i.getFullYear().toString(),"m+":(i.getMonth()+1).toString(),"d+":i.getDate().toString(),"h+":i.getHours().toString(),"M+":i.getMinutes().toString(),"s+":i.getSeconds().toString()};for(var a in s)n=new RegExp("("+a+")").exec(e),n&&(e=e.replace(n[1],1==n[1].length?s[a]:s[a].padStart(n[1].length,"0")));return e}function s(t){var e="",n=parseInt(t/3600),i=parseInt(t%3600/60),s=parseInt(t%3600%60);return n>0&&(n=n<10?"0"+n:n,e+=n+":"),i=i<10?"0"+i:i,s=s<10?"0"+s:s,e+=i+":"+s,e}Object.defineProperty(e,"__esModule",{value:!0}),e.timeFormat=i,e.getDurationTime=s,String.prototype.padStart||(String.prototype.padStart=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(e))throw new TypeError("fillString must be String");var n=this;if(n.length>=t)return String(n);var i=t-n.length,s=Math.ceil(i/e.length);while(s>>=1)e+=e,1===s&&(e+=e);return e.slice(0,i)+n})},c8cc:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=uni.requireNativePlugin("modal"),i=uni.requireNativePlugin("DCloud-RichAlert"),s={data:function(){return{title:""}},onLoad:function(){},methods:{showRichAlert:function(){i.show({position:"bottom",title:"\u63d0\u793a\u4fe1\u606f",titleColor:"#FF0000",content:"uni-app \u662f\u4e00\u4e2a\u4f7f\u7528 Vue.js \u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u7684\u524d\u7aef\u6846\u67b6!\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u91cd\u8981\u7684\u4e8b\u60c5\u8bf4\u4e09\u904d",contentAlign:"left",checkBox:{title:"\u4e0d\u518d\u63d0\u793a",isSelected:!0},buttons:[{title:"\u53d6\u6d88"},{title:"\u5426"},{title:"\u786e\u8ba4",titleColor:"#3F51B5"}]},(function(e){var i=JSON.stringify(e);switch(n.toast({message:i,duration:1.5}),e.type){case"button":t("log","callback---button--"+e.index," at pages/sample/richAlert.vue:50");break;case"checkBox":t("log","callback---checkBox--"+e.isSelected," at pages/sample/richAlert.vue:53");break;case"a":t("log","callback---a--"+JSON.stringify(e)," at pages/sample/richAlert.vue:56");break;case"backCancel":t("log","callback---backCancel--"," at pages/sample/richAlert.vue:59");break}}))}}};e.default=s}).call(this,n("0de9")["default"])},e3f4:function(t,e,n){"undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/sample/ext-module-vue",(function(){return Vue.extend(n("3c60").default)})),__definePage("pages/index/index",(function(){return Vue.extend(n("8db1").default)})),__definePage("pages/index/ball_list",(function(){return Vue.extend(n("40a2").default)})),__definePage("pages/sample/richAlert",(function(){return Vue.extend(n("9a1b").default)}))},e678:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","button-sp-area"),attrs:{_i:0}},[n("button",{attrs:{_i:1},on:{click:function(e){return t.showRichAlert()}}})])},a=[]},f0c5:function(t,e,n){"use strict";function i(t,e,n,i,s,a,r,o,c,u){var l,f="function"===typeof t?t.options:t;if(c){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in c)d.call(c,p)&&!d.call(f.components,p)&&(f.components[p]=c[p])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),i&&(f.functional=!0),a&&(f._scopeId="data-v-"+a),r?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},f._ssrRegister=l):s&&(l=o?function(){s.call(this,this.$root.$options.shadowRoot)}:s),l)if(f.functional){f._injectStyles=l;var _=f.render;f.render=function(t,e){return l.call(e),_(t,e)}}else{var g=f.beforeCreate;f.beforeCreate=g?[].concat(g,l):[l]}return{exports:t,options:f}}n.d(e,"a",(function(){return i}))},f5b2:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{optionQuery:{},ballList:[],page:1,pageTotal:1,isShowBtn:!1}},onLoad:function(t){t.stadium_id,t.brand_id},onReachBottom:function(){},methods:{returnBtn:function(){uni.navigateBack()},getList:function(e){var n=this,i=e.page,s=void 0===i?1:i,a=e.page_size,r=void 0===a?10:a,o=this.optionQuery;util.showLoad(),servers.post({url:API.tidList,data:{brand_id:o.brand_id,stadium_id:o.stadium_id,goods_name:"\u7bee\u7403\u5f55\u5165",page:s,page_size:r},failMsg:"\u52a0\u8f7d\u5931\u8d25\uff01"}).then((function(e){util.hideLoad(),n.pageTotal=Math.ceil(e.total/10);var i=e.list||[];return t("log","\u6b66\u6c49\u51e1\u8c37\uff1a",JSON.stringify(e)," at pages/index/ball_list.vue:102"),1==s?(i.length>0&&(n.isShowBtn=!0),n.ballList=i):i.length<=0?util.showNone("\u6ca1\u6709\u66f4\u591a\uff01"):(n.page=s,void(n.ballList=i))})).catch((function(e){t("error","\u7bee\u7403\u5217\u8868-err\uff1f",e," at pages/index/ball_list.vue:116")}))}}};e.default=n}).call(this,n("0de9")["default"])}},[["0a3c","app-config"]]]); \ No newline at end of file +(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0a3c":function(t,e,n){"use strict";n("e3f4");var i=a(n("8bbf")),s=a(n("8d89"));function a(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e1?e-1:0),i=1;i1){var u=o.pop();c=o.join("---COMMA---"),0===u.indexOf(" at ")?c+=u:c+="---COMMA---"+u}else c=o[0];console[r](c)}n.r(e),n.d(e,"log",(function(){return r})),n.d(e,"default",(function(){return o}))},"148d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("c677"),s=uni.requireNativePlugin("Zmt-Module"),a=uni.requireNativePlugin("TestModule"),r=uni.requireNativePlugin("uniplugin_module_ox"),o=uni.requireNativePlugin("Face-Module"),c=uni.requireNativePlugin("modal"),u={onLoad:function(){this.initAPPListener()},onReady:function(){this.logs.push("\u5f53\u524d\u65f6\u95f4:"+this.getTime())},data:function(){return{logs:["LOG VIEW"]}},methods:{initAPPListener:function(){var t=this;plus.globalEvent.addEventListener("myEvent",(function(e){c.toast({message:"TestEvent\u6536\u5230\uff1a"+JSON.stringify(e),duration:3.5}),t.log("\u5168\u5c40\u4e8b\u4ef6\u63a5\u6536:"+JSON.stringify(e))}))},faceAsyncFunc:function(){var t=this;this.log("\u6267\u884cfaceModule.faceAsyncFunc"),o.faceAsyncFunc({name:"unimp",age:1},(function(e){c.toast({message:e,duration:1.5}),t.log(JSON.stringify(e))}))},initTcp:function(){var t=this;this.log("Click Tcp Server."),s.initTcp({port:"16666"},(function(e){c.toast({message:e,duration:2}),t.log("invoke:"+JSON.stringify(e))}))},getIP:function(){var t=this;s.getIP({},(function(e){c.toast({message:e,duration:2}),t.log("invoke:"+JSON.stringify(e))}))},closeTcp:function(){var t=this;this.log("Click Tcp Server."),s.closeTcp({},(function(e){c.toast({message:e,duration:2}),t.log("invoke:"+JSON.stringify(e))}))},testFun2:function(){var t=s.testSyncFunc({name:"unimp",age:1});c.toast({message:t,duration:1.5})},testAsyncFunc:function(){a.testAsyncFunc({name:"unimp",age:1},(function(t){c.toast({message:t,duration:1.5})}))},testSyncFunc:function(){var t=a.testSyncFunc({name:"unimp",age:1});c.toast({message:t,duration:1.5})},testAsyncFunc2:function(){r.testAsyncFunc2({name:"unimp",age:1},(function(t){c.toast({message:t,duration:1.5})}))},testSyncFunc2:function(){var t=r.testSyncFunc2({name:"unimp",age:1});c.toast({message:t,duration:1.5})},log:function(t){this.logs.push(this.getTime()+" ".concat(t))},getTime:function(){return(0,i.timeFormat)(new Date,"mm/dd hh:MM:ss")},gotoNativePage:function(){a.gotoNativePage()}}};e.default=u},"1e9b":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLaunch:function(){t("log","App Launch"," at App.vue:4")},onShow:function(){t("log","App Show"," at App.vue:7")},onHide:function(){t("log","App Hide"," at App.vue:10")}};e.default=n}).call(this,n("0de9")["default"])},"3c60":function(t,e,n){"use strict";n.r(e);var i=n("d0fd"),s=n("b5df");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"40a2":function(t,e,n){"use strict";n.r(e);var i=n("499f"),s=n("c3ad");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"499f":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","ball-list"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","bl-line"),attrs:{_i:1}},[n("view"),n("view",{attrs:{_i:3},on:{click:t.returnBtn}})]),n("view",{staticClass:t._$s(4,"sc","bl-tab"),attrs:{_i:4}},[n("view"),n("view"),n("view"),n("view")]),n("scroll-view",{staticClass:t._$s(9,"sc","bl-scroll"),attrs:{_i:9}},[n("view",{staticClass:t._$s(10,"sc","bl-list"),attrs:{_i:10}},[t._l(3,(function(e,i,s,a){return n("view",{key:i,staticClass:t._$s("11-"+a,"sc","bll-item"),attrs:{_i:"11-"+a}},[n("view",{class:t._$s("12-"+a,"c",[i==t.ballList.length-1?"fillet-left":""]),attrs:{_i:"12-"+a}},[t._v(t._$s("12-"+a,"t0-0",t._s(e.goods_name||"555")))]),n("view",[t._v(t._$s("13-"+a,"t0-0",t._s(e.tid_string||"\u5408\u6cd5\u5927\u4f7f\u9986sfghdsfghdjsgdksjdjghdfjkghfd2021-11-11 11:22:54")))]),n("view",[t._v(t._$s("14-"+a,"t0-0",t._s(e.created_at||"123213")))]),n("view",{class:t._$s("15-"+a,"c",[i==t.ballList.length-1?"fillet-right":""]),attrs:{_i:"15-"+a}},[t._v(t._$s("15-"+a,"t0-0",t._s(e.operator_name||"544")))])])})),n("view",{staticClass:t._$s(16,"sc","info-list"),attrs:{_i:16}},t._l(3,(function(e,i,s,a){return n("view",{staticClass:t._$s("17-"+a,"sc","i-item"),attrs:{_i:"17-"+a}},[n("view",{staticClass:t._$s("18-"+a,"sc","i-box"),attrs:{_i:"18-"+a}}),n("view",{staticClass:t._$s("19-"+a,"sc","i-box"),attrs:{_i:"19-"+a}}),n("view",{staticClass:t._$s("20-"+a,"sc","i-box"),attrs:{_i:"20-"+a}}),n("view",{staticClass:t._$s("21-"+a,"sc","i-box"),attrs:{_i:"21-"+a}},[t._v(t._$s("21-"+a,"t0-0",t._s(e[2])))])])})),0)],2)]),t._$s(22,"i",t.isShowBtn)?n("view",{staticClass:t._$s(22,"sc","bl-btn"),attrs:{_i:22}},[n("view",{attrs:{_i:23},on:{click:function(e){return t.btnChange(1)}}}),n("view",[n("text",[t._v(t._$s(25,"t0-0",t._s(t.page||0)))]),n("text",[t._v(t._$s(26,"t0-0",t._s(t.pageTotal||0)))])]),n("view",{attrs:{_i:27},on:{click:function(e){return t.btnChange(2)}}})]):t._e()])},a=[]},5564:function(t,e,n){"use strict";n.r(e);var i=n("741d"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},"741d":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{list:[{id:"ext-module",name:"\u6269\u5c55 module\u6d4b\u8bd5\u5217\u8868",open:!1,url:"/pages/sample/ext-module-vue"},{id:"ext-component",name:"\u6269\u5c55 component",open:!1,url:"/pages/sample/ext-component"},{id:"richAlert",name:"\u63d2\u4ef6\u793a\u4f8bRichAlert",open:!1,url:"/pages/sample/richAlert"}],navigateFlag:!1}},onLoad:function(){},methods:{goScan:function(){t("log",111," at pages/index/index.vue:59"),uni.navigateTo({url:"./scan"})},goBallList:function(){t("log",111," at pages/index/index.vue:66"),uni.navigateTo({url:"./ball_list"})},testScanCancle:function(){uni.scanCode({onlyFromCamera:!0,success:function(e){t("log","\u6761\u7801\u7c7b\u578b\uff1a"+e.scanType," at pages/index/index.vue:76"),t("log","\u6761\u7801\u5185\u5bb9\uff1a"+e.result," at pages/index/index.vue:77")}}),setTimeout((function(){t("log","\u6267\u884c\u8fd4\u56de"," at pages/index/index.vue:81"),uni.navigateBack(),uni.navigateBack()}),3e3)},triggerCollapse:function(t){if(this.list[t].pages)for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t||(t=Number(new Date)),"string"==typeof t&&t.indexOf("-")>0&&(t=t.replace(/\-/g,"/")),10==t.toString().length&&(t*=1e3);var n,i=new Date(t),s={"y+":i.getFullYear().toString(),"m+":(i.getMonth()+1).toString(),"d+":i.getDate().toString(),"h+":i.getHours().toString(),"M+":i.getMinutes().toString(),"s+":i.getSeconds().toString()};for(var a in s)n=new RegExp("("+a+")").exec(e),n&&(e=e.replace(n[1],1==n[1].length?s[a]:s[a].padStart(n[1].length,"0")));return e}function s(t){var e="",n=parseInt(t/3600),i=parseInt(t%3600/60),s=parseInt(t%3600%60);return n>0&&(n=n<10?"0"+n:n,e+=n+":"),i=i<10?"0"+i:i,s=s<10?"0"+s:s,e+=i+":"+s,e}Object.defineProperty(e,"__esModule",{value:!0}),e.timeFormat=i,e.getDurationTime=s,String.prototype.padStart||(String.prototype.padStart=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(e))throw new TypeError("fillString must be String");var n=this;if(n.length>=t)return String(n);var i=t-n.length,s=Math.ceil(i/e.length);while(s>>=1)e+=e,1===s&&(e+=e);return e.slice(0,i)+n})},c8cc:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=uni.requireNativePlugin("modal"),i=uni.requireNativePlugin("DCloud-RichAlert"),s={data:function(){return{title:""}},onLoad:function(){},methods:{showRichAlert:function(){i.show({position:"bottom",title:"\u63d0\u793a\u4fe1\u606f",titleColor:"#FF0000",content:"uni-app \u662f\u4e00\u4e2a\u4f7f\u7528 Vue.js \u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u7684\u524d\u7aef\u6846\u67b6!\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u91cd\u8981\u7684\u4e8b\u60c5\u8bf4\u4e09\u904d",contentAlign:"left",checkBox:{title:"\u4e0d\u518d\u63d0\u793a",isSelected:!0},buttons:[{title:"\u53d6\u6d88"},{title:"\u5426"},{title:"\u786e\u8ba4",titleColor:"#3F51B5"}]},(function(e){var i=JSON.stringify(e);switch(n.toast({message:i,duration:1.5}),e.type){case"button":t("log","callback---button--"+e.index," at pages/sample/richAlert.vue:50");break;case"checkBox":t("log","callback---checkBox--"+e.isSelected," at pages/sample/richAlert.vue:53");break;case"a":t("log","callback---a--"+JSON.stringify(e)," at pages/sample/richAlert.vue:56");break;case"backCancel":t("log","callback---backCancel--"," at pages/sample/richAlert.vue:59");break}}))}}};e.default=s}).call(this,n("0de9")["default"])},d0fd:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[n("button",{staticClass:t._$s(1,"sc","btn"),attrs:{_i:1},on:{click:t.gotoNativePage}}),n("button",{staticClass:t._$s(2,"sc","btn"),attrs:{_i:2},on:{click:t.initTcp}}),n("button",{staticClass:t._$s(3,"sc","btn"),attrs:{_i:3},on:{click:t.closeTcp}}),n("button",{staticClass:t._$s(4,"sc","btn"),attrs:{_i:4},on:{click:t.getIP}}),n("text",{staticClass:t._$s(5,"sc","tips"),attrs:{_i:5}}),n("button",{staticClass:t._$s(6,"sc","btn"),attrs:{_i:6},on:{click:t.faceAsyncFunc}}),n("text",{staticClass:t._$s(7,"sc","tips"),attrs:{_i:7}}),n("view",{staticClass:t._$s(8,"sc","console"),attrs:{_i:8}},t._l(t._$s(9,"f",{forItems:t.logs}),(function(e,i,s,a){return n("text",{key:t._$s(9,"f",{forIndex:s,key:"9-"+a}),staticClass:t._$s("9-"+a,"sc","log"),attrs:{_i:"9-"+a}},[t._v(t._$s("9-"+a,"t0-0",t._s(e)))])})),0),n("button",{staticClass:t._$s(10,"sc","btn"),attrs:{_i:10},on:{click:t.testAsyncFunc2}}),n("button",{staticClass:t._$s(11,"sc","btn"),attrs:{_i:11},on:{click:t.testSyncFunc2}}),n("button",{staticClass:t._$s(12,"sc","btn"),attrs:{_i:12},on:{click:t.testAsyncFunc}}),n("button",{staticClass:t._$s(13,"sc","btn"),attrs:{_i:13},on:{click:t.testSyncFunc}})])},a=[]},e3f4:function(t,e,n){"undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/sample/ext-module-vue",(function(){return Vue.extend(n("3c60").default)})),__definePage("pages/index/index",(function(){return Vue.extend(n("8db1").default)})),__definePage("pages/index/ball_list",(function(){return Vue.extend(n("40a2").default)})),__definePage("pages/sample/richAlert",(function(){return Vue.extend(n("9a1b").default)}))},e678:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","button-sp-area"),attrs:{_i:0}},[n("button",{attrs:{_i:1},on:{click:function(e){return t.showRichAlert()}}})])},a=[]},f0c5:function(t,e,n){"use strict";function i(t,e,n,i,s,a,r,o,c,u){var l,f="function"===typeof t?t.options:t;if(c){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var _ in c)d.call(c,_)&&!d.call(f.components,_)&&(f.components[_]=c[_])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),i&&(f.functional=!0),a&&(f._scopeId="data-v-"+a),r?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},f._ssrRegister=l):s&&(l=o?function(){s.call(this,this.$root.$options.shadowRoot)}:s),l)if(f.functional){f._injectStyles=l;var p=f.render;f.render=function(t,e){return l.call(e),p(t,e)}}else{var g=f.beforeCreate;f.beforeCreate=g?[].concat(g,l):[l]}return{exports:t,options:f}}n.d(e,"a",(function(){return i}))},f5b2:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{optionQuery:{},ballList:[],page:1,pageTotal:1,isShowBtn:!1}},onLoad:function(t){t.stadium_id,t.brand_id},onReachBottom:function(){},methods:{returnBtn:function(){uni.navigateBack()},getList:function(e){var n=this,i=e.page,s=void 0===i?1:i,a=e.page_size,r=void 0===a?10:a,o=this.optionQuery;util.showLoad(),servers.post({url:API.tidList,data:{brand_id:o.brand_id,stadium_id:o.stadium_id,goods_name:"\u7bee\u7403\u5f55\u5165",page:s,page_size:r},failMsg:"\u52a0\u8f7d\u5931\u8d25\uff01"}).then((function(e){util.hideLoad(),n.pageTotal=Math.ceil(e.total/10);var i=e.list||[];return t("log","\u6b66\u6c49\u51e1\u8c37\uff1a",JSON.stringify(e)," at pages/index/ball_list.vue:102"),1==s?(i.length>0&&(n.isShowBtn=!0),n.ballList=i):i.length<=0?util.showNone("\u6ca1\u6709\u66f4\u591a\uff01"):(n.page=s,void(n.ballList=i))})).catch((function(e){t("error","\u7bee\u7403\u5217\u8868-err\uff1f",e," at pages/index/ball_list.vue:116")}))}}};e.default=n}).call(this,n("0de9")["default"])}},[["0a3c","app-config"]]]); \ No newline at end of file diff --git a/app/src/main/assets/apps/__UNI__2B9497D/www/app-view.js b/app/src/main/assets/apps/__UNI__2B9497D/www/app-view.js index c30699f..a46cff7 100644 --- a/app/src/main/assets/apps/__UNI__2B9497D/www/app-view.js +++ b/app/src/main/assets/apps/__UNI__2B9497D/www/app-view.js @@ -1 +1 @@ -(function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./",n(n.s="0a3c")})({"0808":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{wxsProps:{}}},components:{}};e.default=i},"0a3c":function(t,e,n){"use strict";function i(){function t(t){var e=n("a72e");e.__inject__&&e.__inject__(t)}"function"===typeof t&&t(),UniViewJSBridge.publishHandler("webviewReady")}n("f711"),"undefined"!==typeof plus?i():document.addEventListener("plusready",i)},2200:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";body{background:#f2f2f7}.ball-list{position:relative;padding-bottom:90rpx}.ball-list .bl-line{padding:60rpx 48rpx 58rpx 40rpx;display:flex;align-items:center;justify-content:space-between}.ball-list .bl-line > uni-view:first-child{color:#1a1a1a;font-size:44rpx;line-height:60rpx;font-weight:700}.ball-list .bl-line > uni-view:nth-child(2){color:#009874;font-size:28rpx;line-height:40rpx}.ball-list .bl-tab{margin:0 24rpx;border-top-left-radius:10rpx;border-top-right-radius:10rpx;background-color:#ddd;display:flex;align-items:center;justify-content:flex-start}.ball-list .bl-tab > uni-view{width:174rpx;height:110rpx;color:#1a1a1a;font-size:28rpx;line-height:40rpx;text-align:center;border-right:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-tab > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-scroll{height:850rpx}.ball-list .bl-list{height:auto}.ball-list .bl-list .bll-item{margin:0 24rpx;display:flex;align-items:center;justify-content:flex-start;background-color:#fff;width:700rpx}.ball-list .bl-list .bll-item > uni-view{padding:0 4rpx;width:174rpx;height:100%;color:#1a1a1a;font-size:24rpx;text-align:center;line-height:34rpx;background-color:#fff;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;display:flex;align-items:center;justify-content:center;flex-direction:row}.ball-list .bl-list .bll-item > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-list .bll-item > uni-view:not(:last-child){border-bottom:1rpx solid red}.ball-list .bl-list .info-list{margin:0 24rpx;margin-top:30rpx;margin-bottom:50rpx;width:700rpx;height:auto;background:#fff;border-radius:10rpx;font-size:28rpx}.ball-list .bl-list .info-list .i-item{display:flex;align-items:center;justify-content:center;align-items:stretch}.ball-list .bl-list .info-list .i-item .i-box{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:26rpx 10rpx;width:176rpx;height:auto}.ball-list .bl-list .info-list .i-item .i-box:nth-child(2){border:1rpx solid #f2f2f7;border-bottom:none;border-top:none;word-break:break-all}.ball-list .bl-list .info-list .i-item .i-box:nth-child(3){border:1rpx solid #f2f2f7;border-bottom:none;flex-grow:1}.ball-list .bl-list .info-list .i-item .i-box:last-child{flex-grow:1}.ball-list .bl-list .info-list .i-item:not(:last-child){border-bottom:1rpx solid #f2f2f7}.ball-list .bl-btn{position:fixed;bottom:0;left:0;padding:12rpx 0;width:750rpx;background-color:#fff;border-top:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-btn > uni-view{font-size:28rpx;line-height:40rpx;text-align:center}.ball-list .bl-btn > uni-view:first-child{padding:12rpx 0;width:180rpx;color:#009874;background-color:#fff;border:2rpx solid #009874;border-radius:6rpx}.ball-list .bl-btn > uni-view:nth-child(2){margin:0 50rpx}.ball-list .bl-btn > uni-view:nth-child(2) > uni-text{margin:0 2rpx;color:#009874}.ball-list .bl-btn > uni-view:nth-child(3){padding:12rpx 0;width:180rpx;color:#fff;background-color:#009874;border:2rpx solid #009874;border-radius:6rpx}',""]),t.exports=e},2275:function(t,e,n){"use strict";var i=n("fe81"),r=n.n(i);r.a},"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"===typeof btoa){var a=r(i),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([a]).join("\n")}return[n].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"===typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var a=0;an.parts.length&&(i.parts.length=n.parts.length)}else{var o=[];for(r=0;r uni-view:first-child{color:#1a1a1a;font-size:44rpx;line-height:60rpx;font-weight:700}.ball-list .bl-line > uni-view:nth-child(2){color:#009874;font-size:28rpx;line-height:40rpx}.ball-list .bl-tab{margin:0 24rpx;border-top-left-radius:10rpx;border-top-right-radius:10rpx;background-color:#ddd;display:flex;align-items:center;justify-content:flex-start}.ball-list .bl-tab > uni-view{width:174rpx;height:110rpx;color:#1a1a1a;font-size:28rpx;line-height:40rpx;text-align:center;border-right:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-tab > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-scroll{height:850rpx}.ball-list .bl-list{height:auto}.ball-list .bl-list .bll-item{margin:0 24rpx;display:flex;align-items:center;justify-content:flex-start;background-color:#fff;width:700rpx}.ball-list .bl-list .bll-item > uni-view{padding:0 4rpx;width:174rpx;height:100%;color:#1a1a1a;font-size:24rpx;text-align:center;line-height:34rpx;background-color:#fff;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;display:flex;align-items:center;justify-content:center;flex-direction:row}.ball-list .bl-list .bll-item > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-list .bll-item > uni-view:not(:last-child){border-bottom:1rpx solid red}.ball-list .bl-list .info-list{margin:0 24rpx;margin-top:30rpx;margin-bottom:50rpx;width:700rpx;height:auto;background:#fff;border-radius:10rpx;font-size:28rpx}.ball-list .bl-list .info-list .i-item{display:flex;align-items:center;justify-content:center;align-items:stretch}.ball-list .bl-list .info-list .i-item .i-box{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:26rpx 10rpx;width:176rpx;height:auto}.ball-list .bl-list .info-list .i-item .i-box:nth-child(2){border:1rpx solid #f2f2f7;border-bottom:none;border-top:none;word-break:break-all}.ball-list .bl-list .info-list .i-item .i-box:nth-child(3){border:1rpx solid #f2f2f7;border-bottom:none;flex-grow:1}.ball-list .bl-list .info-list .i-item .i-box:last-child{flex-grow:1}.ball-list .bl-list .info-list .i-item:not(:last-child){border-bottom:1rpx solid #f2f2f7}.ball-list .bl-btn{position:fixed;bottom:0;left:0;padding:12rpx 0;width:750rpx;background-color:#fff;border-top:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-btn > uni-view{font-size:28rpx;line-height:40rpx;text-align:center}.ball-list .bl-btn > uni-view:first-child{padding:12rpx 0;width:180rpx;color:#009874;background-color:#fff;border:2rpx solid #009874;border-radius:6rpx}.ball-list .bl-btn > uni-view:nth-child(2){margin:0 50rpx}.ball-list .bl-btn > uni-view:nth-child(2) > uni-text{margin:0 2rpx;color:#009874}.ball-list .bl-btn > uni-view:nth-child(3){padding:12rpx 0;width:180rpx;color:#fff;background-color:#009874;border:2rpx solid #009874;border-radius:6rpx}',""]),t.exports=n},2275:function(t,n,e){"use strict";var i=e("fe81"),r=e.n(i);r.a},"24fb":function(t,n,e){"use strict";function i(t,n){var e=t[1]||"",i=t[3];if(!i)return e;if(n&&"function"===typeof btoa){var a=r(i),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[e].concat(o).concat([a]).join("\n")}return[e].join("\n")}function r(t){var n=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n);return"/*# ".concat(e," */")}t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e=i(n,t);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e})).join("")},n.i=function(t,e,i){"string"===typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var a=0;ae.parts.length&&(i.parts.length=e.parts.length)}else{var o=[];for(r=0;r跳转原生Activity + 点击后将开启TcpServer. 本机IP: 192.168.1.64 端口:16666 @@ -97,6 +98,17 @@ this.log("invoke:"+JSON.stringify(ret)) }) }, + getIP(){ + zmtModule.getIP({ + }, + (ret) => { + modal.toast({ + message: ret, + duration: 2 + }); + this.log("invoke:"+JSON.stringify(ret)) + }) + }, closeTcp(){ // 调用异步方法 this.log("Click Tcp Server.") diff --git a/zmt_module/src/main/java/io/dcloud/zmt_module/zmtClass.java b/zmt_module/src/main/java/io/dcloud/zmt_module/zmtClass.java index 500b670..3377534 100644 --- a/zmt_module/src/main/java/io/dcloud/zmt_module/zmtClass.java +++ b/zmt_module/src/main/java/io/dcloud/zmt_module/zmtClass.java @@ -9,6 +9,10 @@ import io.dcloud.zmt_module.tcpServer.TCPTask; import android.util.Log; +import java.net.SocketException; + +import static io.dcloud.zmt_module.tcpServer.SocketHelper.getIPAddressForNetwork; + public class zmtClass extends UniModule { String TAG = "module plugin"; @@ -44,10 +48,26 @@ public class zmtClass extends UniModule { // uniSDK.fireGlobalEventCallback("myEvent", params);//发送全局参数直接回调 } + //run JS thread + @UniJSMethod(uiThread = true) + public void getIP(JSONObject options, final UniJSCallback callback){ + Log.e(TAG, "UniJSMethod getIP"); + + + JSONObject data = new JSONObject(); + data.put("code", "0"); + try { + data.put("ip", getIPAddressForNetwork()); + } catch (SocketException e) { + e.printStackTrace(); + } + + callback.invokeAndKeepAlive(data); + } //run JS thread @UniJSMethod(uiThread = true) - public void closeTcp(JSONObject options, final UniJSCallback callback){ + public void closeTcp(JSONObject options, final UniJSCallback callback){ //TODO 需优化,暂勿用 Log.e(TAG, "testSyncFunc--zmt2"); JSONObject data = new JSONObject(); data.put("code", "0");