pu/android-share/commit/b0dfd70745d48867f8a34a9e6da8307f8ddc32dd">b0dfd70745 pathmenu 8 lat temu   wangyujuan 20e74e3de8 pathmenu 8 lat temu   1712772270@qq.com 029d9a0c98 修改注释 8 lat temu   wangyujuan 3d6ee0fc6b 更改项目工程名 8 lat temu   linh 0c937c963c http post请求类(包含url和报文) 8 lat temu   linh b703dd6efa 将对话框功能抽出,display-client直接依赖ipu-alertdialog 8 lat temu   linh e954b956a5 Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 8 lat temu   linh 283832a95f 更改ipu-pathmenu的func功能。删除common和func包里多余文件。 8 lat temu   leijie fb345b3d2e Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 8 lat temu   leijie c8a7884b78 初始化ipu-open-platform(AL) 8 lat temu   leijie 7ec78b893c 更新common中的ipu-mobile&wade-mobile.jar 8 lat temu   wangxl 09d829fa89 add two projects:ipu-alertdialog and ipu-pathmenu 8 lat temu   wangxl 33ae285778 Delete IpuWindowWebView.java 8 lat temu   linh f6c4e4c5ed alertdialog依赖的包 8 lat temu   linh 9da36919dd 增加对话框和快捷菜单。 8 lat temu   leijie 61ef12bd2a Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 8 lat temu   leijie 37966b4adc 初始化能力开放平台Demo 8 lat temu   wangxl 826867488c Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 8 lat temu   wangxl 6a395aab90 Ant打包修复 8 lat temu   wangxl fa7a9bf046 Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 8 lat temu   wangxl 12bbf9cdd5 Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 8 lat temu   wangxl 4a24f5bdee Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 8 lat temu   wangxl 9592f87179 完善ant打包脚本 8 lat temu   huangbo e5b657b9db Android自动化打包9 8 lat temu   huangbo 6a0b3a5833 Android自动化打包9 8 lat temu   huangbo 44352f348a Androidzi自动化脚本优化8 8 lat temu   huangbo 62d034c0e4 Android自动化脚本优化7 8 lat temu   huangbo 34d0468bff Android自动化脚本优化 8 lat temu   huangbo 4121021765 Android自动化脚本优化 8 lat temu   huangbo ffcb720295 Android自动化脚本优化5 8 lat temu   huangbo 7011f0d2ee Android 打包代码优化 8 lat temu   huangbo 5469b5fa03 去掉百度地图的依赖 8 lat temu   huangbo 811303db12 Android自动化脚本优化 8 lat temu   huangbo 335d13ff8c Android自动化打包脚本优化 8 lat temu   huangbo 107268afff Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share.git 8 lat temu   huangbo 119191724f android工程的build脚本 8 lat temu   kevin b13a02523c 更新: 8 lat temu   leijie 5bb86c16e0 修改 8 lat temu   leijie 19cdba1969 Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 8 lat temu   leijie 69ab15f6c7 merge手动合并 8 lat temu   leijie c684a6f3e4 新增baidumap的配置 8 lat temu   leijie ee597b5027 新增baidumap的界面及js 8 lat temu   leijie 0e0482b526 添加分享插件,功能展示 9 lat temu   leijie bcde02e0b5 Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 9 lat temu   leijie 6c12e08dfe 更新wade-mobile和func .jar 9 lat temu   leijie da43d7b349 Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 9 lat temu   leijie 361810225a display-client version2.1变为2.2 9 lat temu   leijie a230de6d6d 更新Head.html 9 lat temu   leijie d5f4a4200d 新增fastclick测试tap延迟 9 lat temu   leijie 080e589dbe 优化顶部栏返回延迟卡顿现象 9 lat temu   leijie 012326f107 Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 9 lat temu   leijie 3d24353000 ipu-client新增asset资源ipu 9 lat temu   leijie 502472383c Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 9 lat temu   leijie 91d91c0d95 bluetooth更新状态,连接监听 9 lat temu   leijie c01d319ae7 更新cpu-basic和mobile 9 lat temu   leijie 3350264405 修改依赖包后代码及依赖的修改 9 lat temu   leijie 2c2dbdff3c common的libs更新 9 lat temu   leijie dbaf90ea83 变更依赖包后func包的代码及依赖包修改 9 lat temu   leijie 33a875955d 删除录音相对路径参数变为"audios" 9 lat temu   wangyujuan f0f39fbed6 【提交内容】:删除multiple-client和multiple-server两个工程!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 9 lat temu   wangxl d29786bff6 添加ant编译脚本 9 lat temu   leijie 5ca88488da Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 9 lat temu   leijie 55cae6d284 更新wade-mobile-server.jar;解决(Escape变为EscapeUnescape后找不到类的错误) 9 lat temu   leijie 1c00150a0d 修包bluetooth代码 9 lat temu   leijie 6adf490fbb Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 9 lat temu   leijie 76491b781b 修改config 9 lat temu   leijie 1dfaad839b 更新commonjar包(ipu-basic&wade-mobile) 9 lat temu   huangbo fdd5301746 wade-mobile-server和ipu-basic代码迁移测试通过 9 lat temu   leijie 8c8f119773 去除Theme_shelock_light;改用原生 9 lat temu   leijie d30228fc79 删除lib里所有'abs'字头的资源文件及actionbarShelock.jar包 9 lat temu   leijie 6fecbf364c Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 9 lat temu   leijie 2f6eb2d047 初始化 抽离的bluetooth项目library 9 lat temu   wangyujuan 6ba1cc253b tttt 9 lat temu   wangyujuan b4200357dc 【提交内容】:删除wade-mobile-common下的关于ipu-map地图资源文件!!!!!!!!!!!! 9 lat temu   kevin a41be8f717 更新:处理IOS返回值为JSON对象的情况 9 lat temu   wangyujuan 89f85f7fec yunba 体验 9 lat temu   wangyujuan 37ec9f7cfc yunba push youhua 9 lat temu   wangyujuan 84009fc2ed yunba push 优化 9 lat temu   wangyujuan 097c2f5aba yunba push 9 lat temu   wangyujuan 00d1b331b7 voice 9 lat temu   wangyujuan 7834fd508b Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share.git 9 lat temu   wangyujuan 3a29878e1d ipu-voice 9 lat temu   wangyujuan 54be2d7f88 更新包名 9 lat temu   wangxl 9dcacd28b6 Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 9 lat temu   wangxl 97124557f0 add push adapter 9 lat temu   wangxl ed67023960 Merge branch 'master' of http://10.1.235.20:3000/ipu/android-share 9 lat temu   wangxl 00580df84d Code Review 9 lat temu   huangbo f43d1543bd Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo be2968e95e hammer手势和自定义手势 9 lat temu   huangbo c339fcdce9 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo bd9de863d0 资源本地化~~~ 9 lat temu   huangbo 443acf8859 使用15的版本 9 lat temu   huangbo 87008944d3 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo 1ab9a0d59b 去掉"-"符号的目录 9 lat temu   huangbo d83c00755d 初始化资源 9 lat temu   huangbo 017016ccd4 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo 850ad52fe4 图片下载引起报错 pano-1.jpg 9 lat temu   huangbo 9b8742dbc8 目录调整,biz目录才会打进war包 9 lat temu   huangbo 280df46f09 推送推送 9 lat temu   huangbo 1b1a6c6621 推送逻辑改造 9 lat temu   wangxl 6930874429 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   wangxl e6334b0f6a Add PushReceiveIOS.html 9 lat temu   wangxl 4d668a206d Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   wangxl ab59b0ffa8 add commnet on mobile-action.xml 9 lat temu   wangxl 6ad28b2b31 .. 9 lat temu   wangxl 7351d5df83 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   wangxl c5d859cc5b invoke iscroll's refresh method after document loaded 9 lat temu   wangyj18 b8125e3841 【提交内容】:修复了数据库插件的查询bug,更新jar 9 lat temu   wangyj18 2a15139c15 【提交内容】:修复数据库查询的bug,"null"->"" 9 lat temu   wangyj18 a18a175608 【提交内容】:报表-增删改查 9 lat temu   tik5213 678ce0c6a1 浏览器类型判断 userAgent 更新wade-mobile.js 9 lat temu   tik5213 bdc1d5fec7 更新jar 9 lat temu   tik5213 db800c33c1 userAgent 9 lat temu   tik5213 d4b199ebc5 Merge remote-tracking branch 'origin/master' 9 lat temu   tik5213 21d363588b userAgent 9 lat temu   tik5213 8cdaeda576 Merge remote-tracking branch 'origin/master' 9 lat temu   tik5213 3c5dd0da49 远程app模式——ios支持 9 lat temu   tik5213 ed878017d1 bug 9 lat temu   tik5213 0056fa31a3 屏蔽IE浏览器。禁止在IE浏览器上执行。 9 lat temu   tik5213 d496f3595d 删除多余文件 9 lat temu   tik5213 d066a061ed android返回键引起的ie兼容性bug修复 9 lat temu   tik5213 08d5e85cf9 android返回键事件处理的全面升级 添加了返回值true/false控制事件的传播 添加了入参paramObj作为返回事件的上下文数据。 9 lat temu   tik5213 923b5e8126 general-web-server工程中,添加对window.onMobileBackPressed()的测试 9 lat temu   tik5213 308b2c8781 Merge remote-tracking branch 'origin/master' 9 lat temu   tik5213 deda0e03d6 添加一个iframe测试 9 lat temu   huangbo 747dc6a88c Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo 75fa95f12c ipu-count-test优化 9 lat temu   huangbo 2599e0edd7 Merge branch 'master' of 9 lat temu   huangbo 379354428a 配置优化 9 lat temu   huangbo cfc7e4fce2 配置 9 lat temu   kevin 15c511b728 添加忽略 9 lat temu   huangbo 5029a9b459 ipu-count-test工程初始化 9 lat temu   wangyj18 cac4fa912e 【提交内容】:完善日期控件,支持时分 9 lat temu   kevin a36dd9b472 时间控件修改 9 lat temu   wangyj18 4d724707c8 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   wangyj18 a79b9459e5 【提交内容】:上传下载,bug修复 9 lat temu   huangbo 710312f9bc 工程优化 9 lat temu   huangbo d993da5216 同步最新jar 9 lat temu   huangbo a2958f72fa 保留.classpath 9 lat temu   huangbo 33c3afbba1 添加 9 lat temu   tik5213 987efb367b Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   tik5213 83b3753244 iframe相关解决方案优化 9 lat temu   tik5213 5edd02b0fe iframe问题重复修复 9 lat temu   tik5213 a5971dfaa2 优化终端判断 9 lat temu   wangyj18 329469aae6 wade-mobile-func.jar 9 lat temu   wangyj18 5881fe2a02 关于在页面渲染的过程中包含“null”字符串出现的json格式转换错误的bug 9 lat temu   chengwb3 dd93f92fd5 连接数释放问题,修改wade-mobile-server的jar包 9 lat temu   huangbo 629c0e8c15 数据库连接优化,易用性优先于性能考虑 9 lat temu   huangbo 0ea073e8f5 字符串为空的统一处理 9 lat temu   huangbo e63560762a 提前销毁的BUG 9 lat temu   huangbo 43bb26ff49 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo 4a06602691 ipu优化 9 lat temu   huangbo e01f4c0d39 更新 9 lat temu   huangbo 0de16891a6 删除多余 9 lat temu   huangbo eefe4cfefd 阐述jq和zepto同时存在场景的使用方法。 9 lat temu   huangbo a54bf55b14 ipu基础js同步更新 9 lat temu   huangbo 003d7941df ipu-server的js代码优化 9 lat temu   chengwb3 f3a065d39a 1.配置文件类名更改 9 lat temu   huangbo 59d4430ad9 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo 84b8e9c3d7 isEncode更新 9 lat temu   huangbo 3711ff8a40 isEscape优化 9 lat temu   huangbo 9522f485c7 hardwareAccelerated作用域优化 9 lat temu   huangbo 5c82aca8cc encode escape 9 lat temu   huangbo 3c99434ad3 特殊字符处理方式-encode和escape 9 lat temu   chengwb3 1890b4d4ef 提交 9 lat temu   chengwb3 e0ed2a42aa 增加dao的demo 9 lat temu   huangbo 8dfa85cd20 func的isEscape改造 9 lat temu   tik5213 ecf14cb77c 关于isEscape的问题解决 9 lat temu   tik5213 c2df000911 a 9 lat temu   huangbo df367738b8 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo a76f103799 依然解决不了问题,func编译不过去 9 lat temu   huangbo 877112a031 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo aa671fc9be isEscape改造 9 lat temu   huangbo 361ab2a723 isEscape改造 9 lat temu   huangbo 6933f96243 isEscape改造 9 lat temu   huangbo 8ef01102f4 isEscape改造 9 lat temu   huangbo 953e76f634 isEscape改造 9 lat temu   ybf326 aa81e37b08 更新jar 9 lat temu   ybf326 c63755f3fd 修正Manifest文件,关闭数据备份-allowBackup,设置正确完整的屏幕旋转相关参数-configChanges,打开硬件加速-hardwareAccelerated 9 lat temu   ybf326 26a64aff48 更新jar包 9 lat temu   huangbo c5df20f8bf ipu-remote-client 9 lat temu   wangyj18 5431299a9b 更新jar包 9 lat temu   wangyj18 4fb9d6967a 【提交内容】:mobile-action中selectFirst注释掉 9 lat temu   wangyj18 b8f9036e70 【提交内容】:删除MobileDB.selectFirst方法 9 lat temu   wangyj18 3d050b8a35 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   wangyj18 6b12affaeb 【提交内容】:按照最新的数据库api,同步安卓关于数据库的api,查询还未验证通过 9 lat temu   wangyj18 ed755bd0f9 【提交内容】:按照最新的数据库api,同步安卓关于数据库的api 9 lat temu   huangbo 2fd21ba358 解决推送平台BUG 9 lat temu   wangyj18 930a5a9ad9 tip 9 lat temu   wangyj18 f83991abea 【提交内容】:更新源码,更新common下的全部jar包!!!! 9 lat temu   wangyj18 ecbdd30950 关于 9 lat temu   wangyj18 46e9aa1e60 【提交内容】:display 中的 关于 9 lat temu   wangyj18 bde2d95034 【提交内容】:更新display图标 9 lat temu   wangyj18 a3980844ac 【提交内容】:场景演示 9 lat temu   wangyj18 287238a6a8 【提交内容】:演示场景增加小键盘的演示 9 lat temu   wangyj18 e7eaaa2e90 【提交内容】:将file.js文件中无效的api注释掉 9 lat temu   huangbo cf9d2ee49c Merge branch 'master' of 9 lat temu   huangbo 2a6bdc2254 最新wade-mobile.jar 9 lat temu   huangbo b166336cd4 删除多余文件 9 lat temu   kevin 9f83d99bfd 修改描述 9 lat temu   kevin 68d01fca02 For IOS: 9 lat temu   wangyj18 fd8dbc5263 【提交内容】:更新ipu版本号 9 lat temu   wangxl fce884c3e9 fix tag bug 9 lat temu   wangyj18 4666213c3c tt 9 lat temu   chengwb3 c46d6bc775 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   chengwb3 8e3729e64f jar包更新 9 lat temu   huangbo e97d9ee20f so加载bug修复 9 lat temu   chengwb3 4c1df0c23b 更新wade-mobile-com 和 wade-mobile-func的jar包 9 lat temu   wangyj18 1deb58d17a 【提交内容】:更新ScreenLock api 9 lat temu   wangyj18 eb6aeef361 【提交内容】:更新 ScreenLock API 9 lat temu   wangyj18 f9c17d2484 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   wangyj18 25c2b4aaac 【提交内容】:更新ScreenLock api 9 lat temu   wangyj18 45775d838e 【提交内容】:更新screenLock api 9 lat temu   wangyj18 fffa7e33eb 【提交内容】:更新screenLock api 9 lat temu   wangyj18 13dd701da4 [提交内容]:login 9 lat temu   ybf326 44e41275a4 添加localapp模式的支持 9 lat temu   ybf326 e7de3428f2 jar更新 9 lat temu   ybf326 26f111a4f0 添加对netapp模式的支持 9 lat temu   ybf326 ddab48d2cc 修改mobile-config.xml 9 lat temu   ybf326 fa25c8d9d4 jar包更新 9 lat temu   ybf326 8b3441d9c4 0119-修正一些配置 server-config.xml 9 lat temu   ybf326 1f488f1e26 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   天堂之镜 b86a885644 0119-忽略general-web-server的classes目录和yunba目录 .gitignore 9 lat temu   天堂之镜 7b2cd8e960 0119-UploadFile.java 9 lat temu   天堂之镜 58ff1af77d 0119-在display-server的web下面,添加libs目录 9 lat temu   ybf326 66d57fe12e 0119-AndroidManifest.xml里面添加application 9 lat temu   wangyj18 08cbd8ee52 【提交内容】:nfc 9 lat temu   huangbo 39f4bfd7c5 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo 9bf35aa6b1 Nfc代码优化第一版 9 lat temu   huangbo 28e13c33db Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo f90e7552e6 工程结构调整 9 lat temu   wangyj18 5421731678 multiple 9 lat temu   wangyj18 900f8e586c update display client mobile-config.xml 9 lat temu   wangyj18 3bf8ef9f27 update multiple client 9 lat temu   wangyj18 917202bda9 multiple mobile-config 9 lat temu   wangyj18 d8f27d5983 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   wangyj18 dcfb69f3ed Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   wangyj18 83376c134c tt 9 lat temu   wangyj18 7f0ec72973 [提交内容]:nfc 9 lat temu   wangyj18 d351395ca3 【提交内容】:nfc 9 lat temu   wangyj18 c89111fe17 [提交内容]:nfc配置 9 lat temu   huangbo 125297b384 【提交内容】:删除display-server中的关于NFC的代码 9 lat temu   huangbo fc7e884cc2 1 9 lat temu   huangbo 76e7c1161a 上传下载优化 9 lat temu   huangbo 3f92f3a559 文件上传下载优化 9 lat temu   huangbo 0d618660b1 优化代码 9 lat temu   huangbo ec62917db1 Merge branch 'master' of 9 lat temu   huangbo e12af08c2b 还原代码 9 lat temu   huangbo 876b5842b8 还原代码 9 lat temu   huangbo ea6f131269 提交代码 9 lat temu   huangbo 870d836395 本地数据库优化 9 lat temu   huangbo 8de98a9f6e 上传下载优化 9 lat temu   yangbiao 153374a56e 【提交内容】:display-server nfc 插件 9 lat temu   yangbiao 73af09549e Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   yangbiao aef22de656 jcl bug修复 9 lat temu   wangyj18 2a030451e3 [提交内容]:更新进度条样式;进入子应用每次都判断是否需要更新服务端代码 9 lat temu   wangyj18 1bd3a361a5 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   wangyj18 9039bfc51c 【提交内容】:更新multiple应用的logo图标 9 lat temu   wangyj18 a321b3aae1 【提交内容】:删除display项目中的openBrowser 方法 9 lat temu   wangyj18 c91f6436bd [提交内容]:更新jar包 9 lat temu   huangbo 2bac1a06db 1 9 lat temu   yuanhang 141b47cdc4 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   yuanhang a053ec0d5f 1 9 lat temu   yuanhang 4ff8ee3f5d 修改写卡插件 9 lat temu   yuanhang c4e134bee8 修改写卡插件 9 lat temu   yuanhang ec42a53660 【修改换卡易的驱动】 9 lat temu   yuanhang 2d02e92be5 【修改换卡器的驱动】 9 lat temu   yuanhang e79b85443f Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   yuanhang 7bcc34a5ec 【修改手势锁的逻辑】 9 lat temu   yuanhang 788c09dbb0 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   yuanhang 342583d6ec 【添加安全键盘手势锁,并修改了登陆页面的逻辑】 9 lat temu   yuanhang e1674a343e Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   yuanhang a9220832de 【删掉老文件】 9 lat temu   wangyj18 b7d6550245 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   wangyj18 a36a028aba huancun gongxiang 9 lat temu   wangyj18 8ffe00efb8 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   wangyj18 7fcf20671b 【提交内荣】:缓存共享 9 lat temu   wangyj18 64c38d621a 【提交内容】:缓存共享 9 lat temu   yuanhang 1d3d733534 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   yuanhang f3e854abd5 【添加北京光宽带、实名登记、换卡易、智能终端到工作台中】 9 lat temu   yuanhang 66b64b7689 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   yuanhang 0474b5029e Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   yuanhang d80c0e181b Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   yuanhang ee73b12752 1 9 lat temu   huangbo 4e9fec0d81 1 9 lat temu   huangbo 4c5c3420b8 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo 526a34bdf9 欢迎页面的逻辑 9 lat temu   huangbo 4004e85a68 1 9 lat temu   huangbo 74bfa11a14 增加欢迎页面的逻辑 9 lat temu   huangbo ab2706169f 1 9 lat temu   huangbo 4aa2c57913 1 9 lat temu   huangbo b4d7ef9122 1vsN改造 9 lat temu   huangbo b4930d0110 1vsN改造 9 lat temu   wangyj18 432163e242 gengxin wade-mobile.jar 9 lat temu   wangyj18 e37f524173 ipu-remote-client 9 lat temu   wangyj18 f6307adf54 init 9 lat temu   wangyj18 40946e6ed9 init 9 lat temu   wangyj18 ba0d0c9dd9 init 9 lat temu   huangbo 23e7a155f5 初始化MultipleAppConfig 9 lat temu   huangbo 744be6605a 1vsN平台功能扩展 9 lat temu   huangbo 07ac351228 1vsN平台功能扩展 9 lat temu   huangbo 19e6bddaab 1vsN平台功能扩展 9 lat temu   wangyj18 16314af34f 数据加载 9 lat temu   huangbo cf03cb0447 1vsN 9 lat temu   huangbo 3df4d9fca8 1vsN 9 lat temu   huangbo 0328c96ef5 1vsN 9 lat temu   huangbo aa27435cb1 1vsN 9 lat temu   huangbo f2f6070475 1vsN 9 lat temu   huangbo 317efee125 1vsN 9 lat temu   huangbo fd887bf372 Merge remote-tracking branch 'origin/sso' 9 lat temu   huangbo d35b91f807 1 9 lat temu   huangbo 1122320514 1 9 lat temu   huangbo 86f95da41a 1 9 lat temu   huangbo 1f7ce7ff82 Merge branch 'master' of 9 lat temu   huangbo 8a59d440da 1 9 lat temu   huangbo 509fdf4c3a Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   huangbo 06e66f45b5 Merge branch 'master' of 9 lat temu   huangbo 791b26bdfc 增加isEncrypt()判断,确保浏览器过来的请求不解密 9 lat temu   huangbo 636c683c72 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo b768975527 更新一下 9 lat temu   wangyj18 cfd6358caf 【提交内容】:退出应用,清除内存 9 lat temu   wangyj18 b42d8614e4 添加注释 9 lat temu   wangyj18 db696ac188 【提交内容】:播放录音效果传false的时候,没有声音; 9 lat temu   huangbo 642459faa2 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo 684f3c5b3c 1 9 lat temu   huangbo 52ad799c66 1 9 lat temu   huangbo 9cd242e386 解决上传的问题 9 lat temu   huangbo 29837f3d26 1 9 lat temu   huangbo 7fc183801c Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo 977a883221 合并版本 9 lat temu   huangbo ba1e0e47a0 场景 9 lat temu   huangbo 75f9c4135b Merge branch 'master' of 9 lat temu   huangbo 02d34be604 1 9 lat temu   huangbo 41efbc9f02 1 9 lat temu   huangbo 89cffee838 1 9 lat temu   huangbo ec8583f2c5 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo 16fa5881d5 忽略配置 9 lat temu   yangbiao 3f37a33a95 mac.classpath保留 —— 别删除了啊 9 lat temu   yangbiao 729f5aa48d 最后一版 —— display和ipu都可以正常运行 —— 都依赖commont和lib工程 9 lat temu   yangbiao 46dfc77af8 gitignore 9 lat temu   yangbiao 866f531d7a classpath 9 lat temu   yangbiao b30d62a2f0 Merge branch 'master' of 9 lat temu   yangbiao fc9f2d82c8 cs 9 lat temu   yangbiao 01e5782042 Merge branch 'master' of 9 lat temu   yangbiao f212dd56de stash测试文件删除 9 lat temu   yangbiao 6377fbbc86 stash 9 lat temu   wangxl e17d664b51 update wade-mobile.jar 9 lat temu   wangyj18 de6fa9d51c Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   wangyj18 0033e09bad 【提交内容】:解决二维码扫描自动闪退的问题 9 lat temu   chengwb3 5d06c573fd Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   chengwb3 7a863fbffb [提交内容]:场景演示 9 lat temu   yangbiao 9403c9701b cs 9 lat temu   yangbiao 564e6654aa Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   yangbiao dd9a030e67 zz 9 lat temu   yangbiao b0a4fa0752 aa1 9 lat temu   yangbiao 53b11103c8 最后测试 9 lat temu   yangbiao 9d9a20d963 最后测试 9 lat temu   yangbiao a34c37e4b2 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   yangbiao abc8187ddf 解决突然之后提交 9 lat temu   chengwb3 5beeab7c00 提交测试 9 lat temu   wangyj18 aedb85d5b2 ceshi ignore 9 lat temu   yangbiao 378bf45956 测试 9 lat temu   yangbiao 74d502002d 资源文件合并 9 lat temu   yangbiao 0a6f355382 androidmanifest.xml 9 lat temu   yangbiao d1869a5dc5 dd 9 lat temu   yangbiao 48ad8e656b Merge branch 'master' of 9 lat temu   yangbiao 7ae95f1c97 d 9 lat temu   yangbiao ca0d605230 Merge branch 'master' of 9 lat temu   yangbiao 5746281d06 更新 9 lat temu   yangbiao 438af4b3b1 dd 9 lat temu   wangyj18 cffd19c55a 测试ignore 9 lat temu   wangyj18 374e322b45 测试ignore 9 lat temu   yangbiao c913062230 忽略project.properties和.classpath 9 lat temu   yangbiao 4e9686b12f Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   yangbiao 3d8a4da7cf 删除classpath和project.properties 9 lat temu   yangbiao e5c458f303 com.jar 9 lat temu   yangbiao ac402c674b 修改路径 9 lat temu   yangbiao c66fd0697b Merge branch 'master' of 9 lat temu   yangbiao 76e360f3e4 a 9 lat temu   yangbiao 252ddbbb4f ui.js 9 lat temu   yangbiao 17af848e30 修改 9 lat temu   yangbiao 70748f8193 d 9 lat temu   yangbiao 2e3e7807e2 ada 9 lat temu   yangbiao dbd471574b ad 9 lat temu   yangbiao fafded7029 Merge branch 'master' of 9 lat temu   yangbiao 6c8c756422 dd 9 lat temu   yangbiao c32eb3ebcc f 9 lat temu   yangbiao 9378fc6fa8 dfad 9 lat temu   yangbiao 83ff2cfecf d 9 lat temu   yangbiao 85dda13e9a d 9 lat temu   yangbiao 07587239b0 ui 9 lat temu   yangbiao 82af2f2340 js 9 lat temu   yangbiao 252c4dfe8e d 9 lat temu   yangbiao 417991baff 通讯录 9 lat temu   yangbiao 4f49df4388 通讯录插件 9 lat temu   yangbiao a7cd06a9b7 AM -- 通讯录UI 9 lat temu   yangbiao f90a5b2c83 mobile-action.xml 9 lat temu   yangbiao 3c5e61ed3e l 9 lat temu   yangbiao 62cab8dfa3 d 9 lat temu   yangbiao d183b39c60 license 9 lat temu   yangbiao eafaf219ff dd 9 lat temu   yangbiao 4a6ff2b40d cc 9 lat temu   yangbiao 0a4f00be52 d 9 lat temu   yangbiao 699740ea51 Merge branch 'master' of 9 lat temu   yangbiao 911b1a31eb a 9 lat temu   yangbiao e132920115 aa 9 lat temu   yangbiao d407ed005e g 9 lat temu   yangbiao 255a4025cc d 9 lat temu   yangbiao 0afd1f8d54 a 9 lat temu   yangbiao af0c4f78fa Merge branch 'master' of 9 lat temu   yangbiao c614299807 aa 9 lat temu   yangbiao c5e980864e gitignore 9 lat temu   yangbiao 3721a23a65 gitignore 9 lat temu   yangbiao a6f0d77d05 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   yangbiao b3d86e918c Merge remote-tracking branch 'origin/webview-safe' 9 lat temu   yangbiao a2591ca7bd bb 9 lat temu   yangbiao 66bb54a07e Merge branch 'master' of 9 lat temu   yangbiao ac94158f9e aaa 9 lat temu   wangxl cdfcff06c0 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share 9 lat temu   wangxl 94e369733a remove oEvent 9 lat temu   huangbo 810619155c Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 9 lat temu   huangbo b01f51da90 Tabbar优化 9 lat temu   huangbo c49fe6eca6 1 9 lat temu   huangbo 50363c3ea4 1 9 lat temu   huangbo 2ecd53fe40 KEY失效 9 lat temu   huangbo 03c8b3605e 初始化 9 lat temu   huangbo 42c42ff8b7 1 9 lat temu   yangbiao 5ef2a90a27 aa 10 lat temu   yangbiao 32775af22e aa 10 lat temu   yangbiao 384998d089 aa 10 lat temu   yangbiao 7785d79ad8 dd 10 lat temu   yangbiao ee2098de51 aa 10 lat temu   yangbiao 7bef960ba9 cc 10 lat temu   yangbiao 28537fe8c7 i 10 lat temu   yangbiao 7035572f96 aa 10 lat temu   yangbiao a1b36e20ad bb 10 lat temu   yangbiao 0bf192478b ipu-client 10 lat temu   yangbiao 7b3513ac7e aa 10 lat temu   yangbiao 62badf2f3b aa 10 lat temu   yangbiao 155e84b61f abc 10 lat temu   huangbo 9d4eb5ed44 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 10 lat temu   huangbo 7a9ba69869 1 10 lat temu   huangbo fe7fbc186b 1 10 lat temu   huangbo 65db1c8b06 增加wmWebUI.initTags方法 10 lat temu   huangbo 5af89c621f js版的sleep方法,会阻塞所有js的脚本,CPU占用高,慎用 10 lat temu   huangbo 445dd97855 1 10 lat temu   huangbo 0eaecc7f5e 1 10 lat temu   huangbo 06f5e3ad57 1 10 lat temu   huangbo 14ddc8fd58 1 10 lat temu   huangbo f34b5a0e7a 1 10 lat temu   huangbo 1b996759b6 1 10 lat temu   huangbo fa30bef628 1 10 lat temu   huangbo 4ef67c4a26 1 10 lat temu   huangbo eaea80a691 1 10 lat temu   huangbo f8ef3c3ded 1 10 lat temu   huangbo 3f5dee9cc9 Merge branch 'master' of http://114.215.100.48:3000/ipu/android-share.git 10 lat temu   huangbo ac1aceed68 1 10 lat temu   huangbo 70ed736fa5 1 10 lat temu   huangbo d3126023c9 1 10 lat temu   huangbo cabf8b1194 1 10 lat temu   huangbo 0a7789959f 1 10 lat temu   huangbo b191de70bc 1 10 lat temu   huangbo c1cd129634 1 10 lat temu   huangbo 062b193164 1 10 lat temu   huangbo f00b1ab90c 1 10 lat temu   huangbo a1a45867a8 1 10 lat temu   huangbo 3970e9ea5b 1 10 lat temu   huangbo e5df0b61e8 1 10 lat temu   huangbo 8ea68759cd 1 10 lat temu   huangbo 3310c939c0 1.tap.js。我还原了:使用 10 lat temu   huangbo 7b5df43640 1 10 lat temu   huangbo 81fa55a4a5 还原了:使用 apply而没有使用call 10 lat temu   huangbo 3444b4813b 1 10 lat temu   huangbo f4566797c0 1 10 lat temu   huangbo a2e10ef03d 1 10 lat temu   huangbo 5bcaf24ad9 1 10 lat temu   huangbo 8a59afce22 1 10 lat temu   huangbo 07581c13dd 1 10 lat temu   huangbo 6997acea4b 1 10 lat temu   huangbo 1e3bcbaa19 1 10 lat temu   huangbo 13021c257a 1 10 lat temu   huangbo 16b254c6ca 1 10 lat temu   huangbo 32dda7054c 1 10 lat temu   huangbo 7a9a47f7ef 1 10 lat temu   huangbo 6264ceb840 1 10 lat temu   huangbo 32a94d0d3b 1 10 lat temu   huangbo 109a45d2be 1 10 lat temu   huangbo 1ba407391e 1 10 lat temu   wangxl a0818a25db fix webcome.html and base.css 10 lat temu   huangbo 0442317812 初始化 10 lat temu   huangbo 22bd19543c 初始化 10 lat temu   huangbo 307cee8c71 1 10 lat temu   huangbo 8aa85d121f 初始化 10 lat temu   huangbo 1f191c2a19 初始化 10 lat temu   huangbo c6fe54d25f Init commit 10 lat temu
6 zmienionych plików z 362 dodań i 7 usunięć
  1. 23 4
      ipu-show-server/pom.xml
  2. 168 2
      ipu-show-server/src/main/java/com/ai/ipu/show/bean/CommonBean.java
  3. 112 0
      ipu-show-server/src/main/java/com/ai/ipu/show/util/AesUtils.java
  4. 51 0
      ipu-show-server/src/main/java/com/ai/ipu/show/util/Constant.java
  5. 4 0
      ipu-show-server/src/main/resources/server-config.xml
  6. 4 1
      ipu-show-server/src/main/resources/server-data.xml

+ 23 - 4
ipu-show-server/pom.xml

@ -70,10 +70,10 @@
70 70
            <artifactId>junit</artifactId>
71 71
            <scope>test</scope>
72 72
        </dependency>
73
<!--        <dependency>-->
74
<!--            <groupId>org.springframework.boot</groupId>-->
75
<!--            <artifactId>spring-boot-starter-log4j2</artifactId>-->
76
<!--        </dependency>-->
73
        <!--        <dependency>-->
74
        <!--            <groupId>org.springframework.boot</groupId>-->
75
        <!--            <artifactId>spring-boot-starter-log4j2</artifactId>-->
76
        <!--        </dependency>-->
77 77
        <!--通用http接口-->
78 78
        <dependency>
79 79
            <groupId>cn.hutool</groupId>
@ -97,6 +97,12 @@
97 97
            <artifactId>ipu-file-system</artifactId>
98 98
            <version>3.0</version>
99 99
        </dependency>
100
        <!--加密依赖包-->
101
        <dependency>
102
            <groupId>org.bouncycastle</groupId>
103
            <artifactId>bcprov-jdk16</artifactId>
104
            <version>1.43</version>
105
        </dependency>
100 106
    </dependencies>
101 107
102 108
@ -110,6 +116,19 @@
110 116
                <groupId>org.codehaus.mojo</groupId>
111 117
                <artifactId>exec-maven-plugin</artifactId>
112 118
            </plugin>
119
            <!--引用本地jdk,主要是加解密组件需要用到-->
120
            <plugin>
121
                <artifactId>maven-compiler-plugin</artifactId>
122
                <configuration>
123
                    <source>1.8</source>
124
                    <target>1.8</target>
125
                    <encoding>UTF-8</encoding>
126
                    <compilerArguments>
127
                        <bootclasspath>${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/jce.jar</bootclasspath>
128
                        <extdirs>${project.basedir}/libs</extdirs>
129
                    </compilerArguments>
130
                </configuration>
131
            </plugin>
113 132
        </plugins>
114 133
        <finalName>ipu-show-server</finalName>
115 134
    </build>

+ 168 - 2
ipu-show-server/src/main/java/com/ai/ipu/show/bean/CommonBean.java

@ -3,21 +3,25 @@ package com.ai.ipu.show.bean;
3 3
import cn.hutool.http.HttpRequest;
4 4
import com.ai.ipu.basic.log.ILogger;
5 5
import com.ai.ipu.basic.log.IpuLoggerFactory;
6
import com.ai.ipu.server.frame.bean.AbstractBean;
6
import com.ai.ipu.server.config.MobileConfig;
7
import com.ai.ipu.show.core.bean.IpuAppBean;
8
import com.ai.ipu.show.util.AesUtils;
7 9
import com.ailk.common.data.IData;
10
import com.ailk.common.data.impl.DataMap;
8 11
import com.alibaba.fastjson.JSON;
9 12
import com.ai.ipu.show.util.Constant;
10 13
import com.ai.ipu.show.util.SpringContextUtils;
11 14
import org.springframework.core.env.Environment;
12 15
import org.springframework.util.StringUtils;
13 16
17
import java.util.HashMap;
14 18
import java.util.Map;
15 19
16 20
/**
17 21
 * @author
18 22
 * @desc
19 23
 */
20
public class CommonBean extends AbstractBean {
24
public class CommonBean extends IpuAppBean {
21 25
22 26
    /**
23 27
     * 环境参数工具
@ -98,5 +102,167 @@ public class CommonBean extends AbstractBean {
98 102
        sb.setLength(sb.length() - 1);
99 103
        return sb.toString();
100 104
    }
105
106
107
    /**
108
     * 通用公用接口请求方法
109
     *
110
     * @param requestParams
111
     * @return
112
     * @throws Exception
113
     */
114
    public IData commonInterfaceHandler(IData requestParams) throws Exception {
115
        //定义返回参数
116
        IData result = null;
117
        //先检查是否加密
118
        String encryptFlag = MobileConfig.getValue(Constant.COMMON_INTERFACE_KEY_ENCRYPTFLAG, Constant.COMMON_INTERFACE_DEFAULT_VALUE);
119
        String signFlag = MobileConfig.getValue(Constant.COMMON_INTERFACE_KEY_SIGNFLAG, Constant.COMMON_INTERFACE_DEFAULT_VALUE);
120
        //初始化正式参数,默认直接取上传的参数作为真实参数
121
        IData realReqParams = requestParams;
122
        if (Constant.COMMON_INTERFACE_TRUE_VALUE.equals(encryptFlag)) {
123
            //需要解密
124
            realReqParams = decryptReqData(requestParams);
125
        }
126
        if (Constant.COMMON_INTERFACE_TRUE_VALUE.equals(signFlag)) {
127
            //需要验签
128
            if (checkReqSign(realReqParams)) {
129
                result = createErrorMsg(realReqParams, "签名错误,请检查接口签名");
130
                return result;
131
            }
132
        }
133
        //请求类型(post/get)
134
        String requestType = realReqParams.getString(Constant.COMMON_INTERFACE_KEY_REQTYPE);
135
        //接口名称
136
        String interfaceName = realReqParams.getString(Constant.COMMON_INTERFACE_KEY_INTFNAME);
137
        if (StringUtils.isEmpty(requestType) || StringUtils.isEmpty(interfaceName)) {
138
            result = createErrorMsg(realReqParams, "请指定接口名称和请求方式");
139
            return result;
140
        }
141
142
        //重新组装业务请求参数
143
        //请求头内容
144
        Map<String, Object> headParamMap = new HashMap<>();
145
        IData headerDatas = realReqParams.getData(Constant.COMMON_INTERFACE_KEY_HEAD);
146
        for (String key : headerDatas.keySet()) {
147
            headParamMap.put(key, headerDatas.get(key));
148
        }
149
        //处理
150
        Map<String, Object> bodyParamMap = new HashMap<>();
151
        IData bodyDatas = realReqParams.getData(Constant.COMMON_INTERFACE_KEY_DATA);
152
        //请求body内容
153
        for (String key : requestParams.keySet()) {
154
            bodyParamMap.put(key, requestParams.get(key));
155
        }
156
157
        //获取json作为body
158
        String jsonParams = JSON.toJSONString(bodyParamMap);
159
        log.debug("获取到的json字符:jsonParams:" + jsonParams);
160
161
//        //接口加签名参数拼装
162
//        String appId = environment.getProperty(Constant.ENV_INTERFACE_APPID);
163
//        String timestamp = DateUtil.format(DateUtil.date(), "yyyyMMddHHmmss");
164
//        Map<String, String> signParam = new HashMap<String, String>();
165
//        signParam.put("appId", appId);
166
//        signParam.put("timestamp", timestamp);
167
//        // 如果业务参数需要加密,则这里需是加密后的值
168
//        signParam.put("content", jsonParams);
169
//        // 应用密钥
170
//        String key = environment.getProperty(Constant.ENV_INTERFACE_APPKEY);
171
//        //签名参数
172
//        String signValue = "";
173
//        try {
174
//            log.debug("接口签名加密参数:signParam:" + signParam.toString() + ",key:" + key);
175
//            signValue = SignUtil.sign(signParam, "HmacSHA256", key);
176
//            log.debug("接口签名加密结果:signValue:" + signValue);
177
//        } catch (Exception e) {
178
//            log.error("接口签名发生加密异常:" + e.getMessage());
179
//        }
180
181
        //外部接口返回的参数
182
        String reqResult = null;
183
        //请求url拼接
184
        String url = environment.getProperty(Constant.ENV_URL_BASEPATH) + interfaceName;
185
186
        //请求代理
187
        if (Boolean.parseBoolean(environment.getProperty(Constant.ENV_PROXY_FLAG))) {
188
            System.setProperty("http.proxySet", "true");
189
            System.setProperty("http.proxyHost", environment.getProperty(Constant.ENV_PROXY_SERVER));
190
            System.setProperty("http.proxyPort", environment.getProperty(Constant.ENV_PROXY_PORT));
191
        }
192
        //发送请求
193
        if (Constant.COMMON_INTERFACE_VALUE_POST.equalsIgnoreCase(requestType)) {
194
            log.debug("调用远端Post接口,接口请求地址:" + url + ",参数:" + jsonParams);
195
            HttpRequest httpRequest = HttpRequest.post(url);
196
            //添加header
197
            for (String headerKey : headParamMap.keySet()) {
198
                httpRequest.header(headerKey, headParamMap.get(headerKey).toString());
199
            }
200
            reqResult = httpRequest.contentType("application/json")
201
                    .body(jsonParams)
202
                    //超时,毫秒
203
                    .timeout(30000)
204
                    .execute().body();
205
            log.debug("调用远端Post接口,接口请求地址:" + url + ",返回:" + result);
206
        } else {
207
            //get请求,先要把参数转换到url里面
208
            String filterStrs = "requestType,interfaceName,token";
209
            String urlStr = idata2Url(requestParams, filterStrs);
210
            String reqUrl = url + urlStr;
211
            log.debug("调用远端get接口,接口请求地址:" + reqUrl);
212
            HttpRequest httpRequest = HttpRequest.get(reqUrl);
213
            //添加header
214
            for (String headerKey : headParamMap.keySet()) {
215
                httpRequest.header(headerKey, headParamMap.get(headerKey).toString());
216
            }
217
            reqResult = httpRequest
218
                    .contentType("x-www-form-urlencoded")
219
                    //超时,毫秒
220
                    .timeout(30000)
221
                    .execute().body();
222
            log.debug("调用远端get接口,接口请求地址:" + reqUrl + ",返回:" + reqResult);
223
        }
224
        IData retMap = createReturnData();
225
        if (Constant.COMMON_INTERFACE_TRUE_VALUE.equals(encryptFlag) && reqResult != null) {
226
            //需要加密
227
            String resultEncrypt = AesUtils.aes256ECBPkcs7PaddingHexEncrypt(reqResult, Constant.AES_KEY);
228
            retMap.put(Constant.COMMON_INTERFACE_KEY_DATA, resultEncrypt);
229
        } else {
230
            retMap.put(Constant.COMMON_INTERFACE_KEY_DATA, reqResult);
231
        }
232
        return retMap;
233
    }
234
235
    /**
236
     * 解密入参
237
     *
238
     * @param reqData
239
     * @return
240
     */
241
    public static IData decryptReqData(IData reqData) throws Exception {
242
        IData retIdata = new DataMap();
243
        //处理接口请求参数加解密
244
        String dataSrcStr = reqData.getString(Constant.COMMON_INTERFACE_KEY_DATA);
245
        log.debug("接口参数密文:" + dataSrcStr);
246
        if (dataSrcStr != null && dataSrcStr.length() > 0) {
247
            String dataJson = AesUtils.aes256ECBPkcs7PaddingHexDecrypt(dataSrcStr, Constant.AES_KEY);
248
            log.debug("接口参数解密后明文:" + dataJson);
249
            //把接口参数再次构造成DataMap赋值给参数对象
250
            retIdata = new DataMap(dataJson);
251
252
        }
253
        return retIdata;
254
    }
255
256
    /**
257
     * 签名验证方法
258
     *
259
     * @param reqData
260
     * @return
261
     * @throws Exception
262
     */
263
    public static boolean checkReqSign(IData reqData) throws Exception {
264
        //TODO Junjie.Lai 方法实现
265
        return true;
266
    }
101 267
}
102 268

+ 112 - 0
ipu-show-server/src/main/java/com/ai/ipu/show/util/AesUtils.java

@ -0,0 +1,112 @@
1
package com.ai.ipu.show.util;
2
3
import org.bouncycastle.jce.provider.BouncyCastleProvider;
4
5
import javax.crypto.Cipher;
6
import javax.crypto.spec.SecretKeySpec;
7
import java.nio.charset.StandardCharsets;
8
import java.security.Security;
9
import java.util.Base64;
10
11
/**
12
 * AES加密工具类
13
 */
14
public class AesUtils {
15
    private static final String SECRET = "AES";
16
    private static final String CIPHER_ALGORITHM = "AES/ECB/PKCS7Padding";
17
18
    static {
19
        Security.addProvider(new BouncyCastleProvider());
20
    }
21
22
    /**
23
     * AES加密ECB模式PKCS7Padding填充方式(Base64编码)
24
     * @param str 字符串
25
     * @param key 密钥
26
     * @return 加密字符串
27
     * @throws Exception 异常信息
28
     */
29
    public static String aes256ECBPkcs7PaddingEncrypt(String str, String key) throws Exception {
30
        Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM);
31
        byte[] keyBytes = key.getBytes(StandardCharsets.UTF_8);
32
        cipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(keyBytes, SECRET));
33
        byte[] doFinal = cipher.doFinal(str.getBytes(StandardCharsets.UTF_8));
34
        return new String(Base64.getEncoder().encode(doFinal));
35
    }
36
37
    public static String encodeHexString(byte[] data) {
38
        StringBuilder sb = new StringBuilder();
39
        for (byte b : data) {
40
            sb.append(String.format("%02x", b));
41
        }
42
        return sb.toString();
43
    }
44
45
    public static String aes256ECBPkcs7PaddingHexEncrypt(String str, String key) throws Exception {
46
        Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM);
47
        byte[] keyBytes = key.getBytes(StandardCharsets.UTF_8);
48
        cipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(keyBytes, SECRET));
49
        byte[] doFinal = cipher.doFinal(str.getBytes(StandardCharsets.UTF_8));
50
        return new String(encodeHexString(doFinal));
51
    }
52
53
54
55
    /**
56
     * AES解密ECB模式PKCS7Padding填充方式(Base64编码)
57
     * @param str 字符串
58
     * @param key 密钥
59
     * @return 解密字符串
60
     * @throws Exception 异常信息
61
     */
62
    public static String aes256ECBPkcs7PaddingDecrypt(String str, String key) throws Exception {
63
        Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM);
64
        byte[] keyBytes = key.getBytes(StandardCharsets.UTF_8);
65
        cipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(keyBytes, SECRET));
66
        byte[] doFinal = cipher.doFinal(Base64.getDecoder().decode(str));
67
        return new String(doFinal);
68
    }
69
70
71
    public static byte[] hexStringToByteArray(String hexString) {
72
        hexString = hexString.replaceAll(" ", "");
73
        int len = hexString.length();
74
        byte[] bytes = new byte[len / 2];
75
        for (int i = 0; i < len; i += 2) {
76
            // 两位一组,表示一个字节,把这样表示的16进制字符串,还原成一个字节
77
            bytes[i / 2] = (byte) ((Character.digit(hexString.charAt(i), 16) << 4) + Character
78
                    .digit(hexString.charAt(i+1), 16));
79
        }
80
        return bytes;
81
    }
82
    /**
83
     * AES解密ECB模式PKCS7Padding填充方式(Hex编码)
84
     * @param str 字符串
85
     * @param key 密钥
86
     * @return 解密字符串
87
     * @throws Exception 异常信息
88
     */
89
    public static String aes256ECBPkcs7PaddingHexDecrypt(String str, String key) throws Exception {
90
        Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM);
91
        byte[] keyBytes = key.getBytes(StandardCharsets.UTF_8);
92
        cipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(keyBytes, SECRET));
93
        byte[] doFinal = cipher.doFinal(hexStringToByteArray(str));
94
        return new String(doFinal);
95
    }
96
97
    public static void main(String[] args) throws Exception {
98
        String str = "fjadmin";
99
        System.out.println("字符串:" + str);
100
        String encryptStr = AesUtils.aes256ECBPkcs7PaddingEncrypt(str, "abcdefXXABCDEFxx");
101
        System.out.println("Base64编码,加密后字符串:" + encryptStr);
102
103
        String decryptStr = AesUtils.aes256ECBPkcs7PaddingDecrypt(encryptStr, "abcdefXXABCDEFxx");
104
        System.out.println("Base64编码,解密后字符串:" + decryptStr);
105
106
        String hexEncryptStr = AesUtils.aes256ECBPkcs7PaddingHexEncrypt(str, "abcdefXXABCDEFxx");
107
        System.out.println("Hex编码,加密后字符串:" + hexEncryptStr);
108
109
        String hexDecryptStr = AesUtils.aes256ECBPkcs7PaddingHexDecrypt(hexEncryptStr, "abcdefXXABCDEFxx");
110
        System.out.println("Hex编码,解密后字符串:" + hexDecryptStr);
111
    }
112
}

+ 51 - 0
ipu-show-server/src/main/java/com/ai/ipu/show/util/Constant.java

@ -89,4 +89,55 @@ public class Constant {
89 89
     */
90 90
    public static final String FILE_SAVE_PATH = "appserver.file.savepath";
91 91
92
    /**通用接口固定参数*/
93
    /**
94
     * 请求数据加密标识
95
     */
96
    public static final String COMMON_INTERFACE_KEY_ENCRYPTFLAG = "commInterfaceEncrypt";
97
98
    /**
99
     * 请求数据签名标识
100
     */
101
    public static final String COMMON_INTERFACE_KEY_SIGNFLAG = "commInterfaceSign";
102
103
    /**
104
     * AES加解密的KEY
105
     */
106
    public static final String AES_KEY = "onLineTradeTKAMC";
107
108
    /**
109
     * 参数标识,默认false
110
     */
111
    public static final String COMMON_INTERFACE_DEFAULT_VALUE = "false";
112
113
    /**
114
     * 参数标识,true
115
     */
116
    public static final String COMMON_INTERFACE_TRUE_VALUE = "true";
117
    /**
118
     * 接口请求类型
119
     */
120
    public static final String COMMON_INTERFACE_KEY_REQTYPE = "requestType";
121
122
    /**
123
     * 接口请求值
124
     */
125
    public static final String COMMON_INTERFACE_VALUE_POST = "POST";
126
    public static final String COMMON_INTERFACE_VALUE_GET = "GET";
127
128
    /**
129
     * 接口名称
130
     */
131
    public static final String COMMON_INTERFACE_KEY_INTFNAME = "interfaceName";
132
133
    /**
134
     * 发送到后端的请求head
135
     */
136
    public static final String COMMON_INTERFACE_KEY_HEAD = "head";
137
138
    /**
139
     * 发送到后端的请求data
140
     */
141
    public static final String COMMON_INTERFACE_KEY_DATA = "data";
142
92 143
}

+ 4 - 0
ipu-show-server/src/main/resources/server-config.xml

@ -21,6 +21,10 @@
21 21
    <config name="indexPage" value="Index"/>
22 22
    <!-- 文件是否加密 -->
23 23
    <config name="fileEncrypt" value="true"/>
24
    <!--通用接口是否加密-->
25
    <config name="commInterfaceEncrypt" value="false"/>
26
    <!--通用接口是否签名-->
27
    <config name="commInterfaceSign" value="false"/>
24 28
    <!-- 自定义异常管理器 -->
25 29
    <config name="exceptionHandler" value="com.ai.ipu.show.core.handler.IpuExceptionHandler"/>
26 30
    <!-- 自定义Session管理器 -->

+ 4 - 1
ipu-show-server/src/main/resources/server-data.xml

@ -5,7 +5,6 @@
5 5
    <!-- 模拟发送验证码 -->
6 6
    <action name="LoginBean.sendVerificationCode" class="com.ai.ipu.show.bean.LoginBean" method="sendVerificationCode" verify="false"></action>
7 7
8
    as>
9 8
    <!-- 上传下载 -->
10 9
    <action name="UploadDownloadBean.download" 	class="com.ai.ipu.show.bean.UploadDownloadBean" method="download" verify="false"></action>
11 10
    <action name="UploadDownloadBean.upload" 	class="com.ai.ipu.show.bean.UploadDownloadBean" method="upload" 	verify="false"></action>
@ -61,4 +60,8 @@
61 60
62 61
    <!-- 通用转发接口 -->
63 62
    <action name="CommonBean.interfaceHandler" class="com.ai.ipu.show.bean.CommonBean" method="interfaceHandler" verify="false"></action>
63
64
    <!-- 通用转发功能接口,参数已经过优化处理,支持加密和验签 -->
65
    <action name="CommonBean.commonInterfaceHandler" class="com.ai.ipu.show.bean.CommonBean" method="commonInterfaceHandler" verify="false"></action>
66
64 67
</datas>

android-share - Nuosi Git Service

ipu的trunk版的android工程和服务端工程。

liuyf23 4b2cbbef0e @修复:冲突处理 2 年之前
..
src efbfeabe37 @新增:mobile-action.xml中增加插件对应的权限,避免权限问题导致插件用不了(比如自定义相机等) 2 年之前
build.gradle 4b2cbbef0e @修复:冲突处理 2 年之前
proguard-rules.pro fba78db9f2 超级客户端使用IPU框架4.0 3 年之前
showshow.keystore fba78db9f2 超级客户端使用IPU框架4.0 3 年之前