Commit 1412dfeb28f46cde316fae3e7f8207a7d8946b18
1 parent
8666ab19
初始化工程
Showing
2 changed files
with
190 additions
and
21 deletions
mobsite-man-rpc/src/main/java/com/diligrp/mobsite/man/rpc/impl/StoreRPCImpl.java
1 | 1 | package com.diligrp.mobsite.man.rpc.impl; |
2 | 2 | |
3 | -import java.io.ByteArrayInputStream; | |
4 | -import java.util.Random; | |
5 | -import java.util.UUID; | |
6 | - | |
7 | -import javax.annotation.Resource; | |
8 | - | |
9 | -import org.springframework.stereotype.Service; | |
10 | - | |
11 | 3 | import com.alibaba.fastjson.JSON; |
12 | 4 | import com.alibaba.fastjson.JSONObject; |
13 | 5 | import com.diligrp.mobsite.getway.domain.except.ServiceException; |
14 | 6 | import com.diligrp.mobsite.man.rpc.StoreRPC; |
15 | 7 | import com.diligrp.store.api.upload.DiliStoreUpload; |
8 | +import org.springframework.stereotype.Service; | |
9 | + | |
10 | +import javax.annotation.Resource; | |
11 | +import java.io.ByteArrayInputStream; | |
12 | +import java.util.Random; | |
13 | +import java.util.UUID; | |
16 | 14 | |
17 | 15 | |
18 | 16 | /** |
... | ... | @@ -57,7 +55,7 @@ public class StoreRPCImpl implements StoreRPC { |
57 | 55 | //全地址 |
58 | 56 | fullUrl.append("http://img") |
59 | 57 | .append(random.nextInt(10))//0-9服务器 |
60 | - .append(".nong12.com/") | |
58 | + .append(".1n4j.com/") | |
61 | 59 | .append(BUDGET_NAME_APKPATCH) |
62 | 60 | .append("/") |
63 | 61 | .append(newFileName); | ... | ... |
mobsite-man-web/pom.xml
... | ... | @@ -51,7 +51,7 @@ |
51 | 51 | <project.view.VMDefault>layout/default_content</project.view.VMDefault> |
52 | 52 | |
53 | 53 | <!-- redis 配置 --> |
54 | - <project.redis.host1>10.28.6.152</project.redis.host1> | |
54 | + <project.redis.host1>10.28.10.208</project.redis.host1> | |
55 | 55 | <project.redis.port1>6379</project.redis.port1> |
56 | 56 | |
57 | 57 | <!-- 商品详情链接地址 --> |
... | ... | @@ -64,7 +64,7 @@ |
64 | 64 | <project.default.assets.common.path>http://static.1n4j.com/static/</project.default.assets.common.path> |
65 | 65 | |
66 | 66 | <!-- 本地资源地址 --> |
67 | - <project.default.local.path>http://mobman.1n4j.com/</project.default.local.path> | |
67 | + <project.default.local.path>http://mobman.1n4j.com:8080/</project.default.local.path> | |
68 | 68 | |
69 | 69 | <!-- 图片服务器前缀 --> |
70 | 70 | <project.imageserver.prefix>http://10.28.6.153</project.imageserver.prefix> |
... | ... | @@ -137,7 +137,7 @@ |
137 | 137 | <project.view.VMDefault>layout/default_content</project.view.VMDefault> |
138 | 138 | |
139 | 139 | <!-- redis 配置 --> |
140 | - <project.redis.host1>10.28.6.54</project.redis.host1> | |
140 | + <project.redis.host1>10.28.10.207</project.redis.host1> | |
141 | 141 | <project.redis.port1>6379</project.redis.port1> |
142 | 142 | |
143 | 143 | <!-- 商品详情链接地址 --> |
... | ... | @@ -213,13 +213,16 @@ |
213 | 213 | |
214 | 214 | |
215 | 215 | <profile> |
216 | - <id>product</id> | |
216 | + <id>pre_online</id> | |
217 | + <activation> | |
218 | + <activeByDefault>false</activeByDefault> | |
219 | + </activation> | |
217 | 220 | <properties> |
218 | 221 | <!-- 显示模板 --> |
219 | 222 | <project.view.VMDefault>layout/default_content</project.view.VMDefault> |
220 | 223 | |
221 | 224 | <!-- redis 配置 --> |
222 | - <project.redis.host1>192.168.28.29</project.redis.host1> | |
225 | + <project.redis.host1>redis.1n4j.com</project.redis.host1> | |
223 | 226 | <project.redis.port1>6379</project.redis.port1> |
224 | 227 | |
225 | 228 | <!-- 商品详情链接地址 --> |
... | ... | @@ -261,21 +264,189 @@ |
261 | 264 | <website.search.port>9831</website.search.port> |
262 | 265 | |
263 | 266 | <!-- messagecenter --> |
264 | - <website.messagecenter.namesrvAddr>192.168.28.34:9876</website.messagecenter.namesrvAddr> | |
267 | + <website.messagecenter.namesrvAddr>10.28.6.51:9876</website.messagecenter.namesrvAddr> | |
265 | 268 | <website.messagecenter.producerGroup>mobsite_man</website.messagecenter.producerGroup> |
266 | 269 | |
267 | 270 | <!-- 登录拦截器开关 --> |
268 | 271 | <project.manger.enabled>true</project.manger.enabled> |
269 | - | |
272 | + | |
270 | 273 | <!-- 上传文件服务 --> |
271 | - <project.store.apkPatchAccessKey>wFI9FVLpBgufxvb77tuSP8J2i4cZsf96Bc9KBY3w</project.store.apkPatchAccessKey> | |
272 | - <project.store.apkPatchSecretKey>OD6F8DPpH7wBsh0OkEmfk9C_zxzT2G7xHDig8JJg</project.store.apkPatchSecretKey> | |
274 | + <project.store.apkPatchAccessKey>X_mALB7_lS82Ztkc3-z3or3ckBJTEsIIcbB7O7J3</project.store.apkPatchAccessKey> | |
275 | + <project.store.apkPatchSecretKey>6D7YQV_Kdz17pl6or2bQg_07fhLss09oVfenrPbF</project.store.apkPatchSecretKey> | |
276 | + | |
277 | + <!-- 数据库连接池配置文件 --> | |
278 | + <project.dbpool.driverClass>org.mariadb.jdbc.Driver</project.dbpool.driverClass> | |
279 | + <project.dbpool.jdbcUrl>jdbc:mysql://mobsite.man.db.1n4j.com:3306/agriez_mobsite_man?useUnicode=true&characterEncoding=utf8</project.dbpool.jdbcUrl> | |
280 | + <project.dbpool.username>root</project.dbpool.username> | |
281 | + <project.dbpool.password>123456</project.dbpool.password> | |
282 | + <project.dbpool.idleConnectionTestPeriodInMinutes>1</project.dbpool.idleConnectionTestPeriodInMinutes> | |
283 | + <project.dbpool.idleMaxAgeInMinutes>4</project.dbpool.idleMaxAgeInMinutes> | |
284 | + <project.dbpool.partitionCount>1</project.dbpool.partitionCount> | |
285 | + <project.dbpool.maxConnectionsPerPartition>3</project.dbpool.maxConnectionsPerPartition> | |
286 | + <project.dbpool.minConnectionsPerPartition>2</project.dbpool.minConnectionsPerPartition> | |
287 | + <project.dbpool.acquireIncrement>2</project.dbpool.acquireIncrement> | |
288 | + <project.dbpool.statementsCacheSize>50</project.dbpool.statementsCacheSize> | |
289 | + <project.dbpool.releaseHelperThreads>3</project.dbpool.releaseHelperThreads> | |
290 | + <!--权限相关配置--> | |
291 | + <conf.manage.enable>true</conf.manage.enable> | |
292 | + <conf.manage.spider>true</conf.manage.spider> | |
293 | + <conf.manage.system>mobman</conf.manage.system> | |
294 | + <conf.manage.domain>http://manage.1n4j.com/</conf.manage.domain> | |
295 | + <conf.manage.includes>^/.*\.do</conf.manage.includes> | |
296 | + <conf.manage.excludes>^/noAccess.do$,^/welcome.do$,^/loginControl/.*,^/api/.*,^/appVersion/.*</conf.manage.excludes> | |
297 | + </properties> | |
298 | + </profile> | |
299 | + | |
300 | + <profile> | |
301 | + <id>product</id> | |
302 | + <properties> | |
303 | + <!-- 显示模板 --> | |
304 | + <project.view.VMDefault>layout/default</project.view.VMDefault> | |
305 | + | |
306 | + <!-- redis 配置 --> | |
307 | + <project.redis.host1>redis.1n4j.com</project.redis.host1> | |
308 | + <project.redis.port1>6379</project.redis.port1> | |
309 | + | |
310 | + <!-- 商品详情链接地址 --> | |
311 | + <project.product.detail.path>http://www.1n4j.com/product/</project.product.detail.path> | |
312 | + | |
313 | + <!-- 后台默认静态资源地址 --> | |
314 | + <project.default.assets.path>http://static.1n4j.com/static/ace1.3/assets</project.default.assets.path> | |
315 | + | |
316 | + <!-- 公共样式引用 --> | |
317 | + <project.default.assets.common.path>http://static.1n4j.com/static/</project.default.assets.common.path> | |
318 | + | |
319 | + <!-- 本地资源地址 --> | |
320 | + <project.default.local.path>/</project.default.local.path> | |
321 | + | |
322 | + | |
323 | + | |
324 | + <!-- 店铺域名 --> | |
325 | + <project.shop.url>http://shop.1n4j.com</project.shop.url> | |
326 | + <project.shop.sign>FzZGZxd2VycXdlYXNzZHZzdnp4Y3Z</project.shop.sign> | |
327 | + <project.shop.system>in4j-getway</project.shop.system> | |
328 | + | |
329 | + <!-- sms.webchina.cn 短信发送接口的配置 --> | |
330 | + <project.sms.webchina.SMSKey>2cf3264488ee3beef224</project.sms.webchina.SMSKey> | |
331 | + <project.sms.webchina.userName>itly</project.sms.webchina.userName> | |
332 | + <project.sms.webchina.postURL>http://gbk.sms.webchinese.cn</project.sms.webchina.postURL> | |
333 | + | |
334 | + <!-- interface line --> | |
335 | + <company.yibu.baseUrl>http://wl.1n4j.com</company.yibu.baseUrl> | |
336 | + <company.yibu.token>token</company.yibu.token> | |
337 | + | |
338 | + <!-- 七巧板 --> | |
339 | + <website.act.baseUrl>http://m.act.1n4j.com/act</website.act.baseUrl> | |
340 | + <website.act.token>token</website.act.token> | |
341 | + | |
342 | + <!-- interface user --> | |
343 | + <website.user.baseUrl>http://user.1n4j.com</website.user.baseUrl> | |
344 | + <website.user.token>token</website.user.token> | |
345 | + | |
346 | + <!-- interface order --> | |
347 | + <website.order.baseUrl>http://orders.1n4j.com</website.order.baseUrl> | |
348 | + <website.order.token>token</website.order.token> | |
349 | + | |
350 | + <!-- interface home --> | |
351 | + <website.home.baseUrl>http://www.1n4j.com</website.home.baseUrl> | |
352 | + <website.home.token>token</website.home.token> | |
353 | + <!-- interface stationmsg --> | |
354 | + <website.stationmsg.baseUrl>http://message.1n4j.com/api</website.stationmsg.baseUrl> | |
355 | + <website.stationmsg.token>token</website.stationmsg.token> | |
356 | + <!--supply message interface--> | |
357 | + <website.supply.baseUrl>http://supplymsg.1n4j.com</website.supply.baseUrl> | |
358 | + <website.supply.token>token</website.supply.token> | |
359 | + <!-- interface websiteClient --> | |
360 | + <website.websiteClient.baseUrl>http://manweb.1n4j.com/</website.websiteClient.baseUrl> | |
361 | + <website.websiteClient.token>token</website.websiteClient.token> | |
362 | + | |
363 | + | |
364 | + | |
365 | + <!-- interface titan --> | |
366 | + <website.titan.accesskey>accesskey</website.titan.accesskey> | |
367 | + <website.titan.secretkey>secretkey</website.titan.secretkey> | |
368 | + <website.titan.url>http://titan.api.1n4j.com</website.titan.url> | |
369 | + | |
370 | + <!-- interface search --> | |
371 | + <website.search.host>interface.1n4j.com</website.search.host> | |
372 | + <website.search.port>9831</website.search.port> | |
373 | + | |
374 | + <!-- auth center --> | |
375 | + <website.authcenter.token>token</website.authcenter.token> | |
376 | + <website.authcenter.url>http://authencenter.1n4j.com</website.authcenter.url> | |
377 | + | |
378 | + <!--passport interface--> | |
379 | + <website.passport.baseUrl>http://passport.api.1n4j.com</website.passport.baseUrl> | |
380 | + <website.passport.token>token</website.passport.token> | |
381 | + | |
382 | + <!-- passportSign --> | |
383 | + <passport.login.passportSign>MTIzNDU2Nzg5</passport.login.passportSign> | |
384 | + | |
385 | + <!-- messagecenter --> | |
386 | + <website.messagecenter.namesrvAddr>192.168.60.62:9876;192.168.60.63:9876</website.messagecenter.namesrvAddr> | |
387 | + <website.messagecenter.producerGroup>mobsite_getway</website.messagecenter.producerGroup> | |
388 | + | |
389 | + | |
390 | + <!--passport interface--> | |
391 | + <website.passport.baseUrl>http://passport.api.1n4j.com</website.passport.baseUrl> | |
392 | + <website.passport.token>token</website.passport.token> | |
393 | + | |
394 | + | |
395 | + <!--cms--> | |
396 | + <project.cms.baseUrl>http://cms.1n4j.com/admin</project.cms.baseUrl> | |
397 | + <project.cms.port>80</project.cms.port> | |
398 | + | |
399 | + <!-- fastdfs --> | |
400 | + <project.fastdfs.trackers>10.28.6.148:22122,10.28.6.149:22122</project.fastdfs.trackers> | |
401 | + <project.fastdfs.trackercount>2</project.fastdfs.trackercount> | |
402 | + <project.fastdfs.connectTimeout>2000</project.fastdfs.connectTimeout> | |
403 | + <project.fastdfs.networkTimeout>30000</project.fastdfs.networkTimeout> | |
404 | + <project.fastdfs.charset>utf-8</project.fastdfs.charset> | |
405 | + | |
406 | + | |
407 | + <!-- 图片服务器前缀 --> | |
408 | + <project.imageserver.prefix>http://up.1n4j.com</project.imageserver.prefix> | |
409 | + <project.imageserver.domain>1n4j.com</project.imageserver.domain> | |
410 | + | |
411 | + <!-- interface activity --> | |
412 | + <website.activity.baseUrl>http://activity.1n4j.com</website.activity.baseUrl> | |
413 | + <website.activity.token>token</website.activity.token> | |
414 | + | |
415 | + | |
416 | + <!--<!– 上传文件服务 –>--> | |
417 | + <!--<project.store.url>http://up.1n4j.com</project.store.url>--> | |
418 | + <!--<project.store.imageAccessKey>d6a300418bd6fa2178b3bbb06a421f32</project.store.imageAccessKey>--> | |
419 | + <!--<project.store.imageSecretKey>8d2d1ac5541dcfbbd78ac1793ce4f782</project.store.imageSecretKey>--> | |
420 | + | |
421 | + <!-- 上传文件服务 --> | |
422 | + <project.store.url>http://up.1n4j.com</project.store.url> | |
423 | + <project.store.imageAccessKey>jNvRQi3lLAY7tFpJkWYeF5Fa99Cl6kZRcEiMaZGp</project.store.imageAccessKey> | |
424 | + <project.store.imageSecretKey>1fsaziPx11A3llwHIi84BsIyF90_rB9IAqIx7pU8</project.store.imageSecretKey> | |
425 | + | |
426 | + <!--<!– 上传音频服务 –>--> | |
427 | + <project.store.messageAccessKey>30-PHVmSK6iAMLw5ekBem7l3_qMBceWHnAqeIwnF</project.store.messageAccessKey> | |
428 | + <project.store.messageSecretKey>00V-jKrjBgpePC2gSuUJE7cWQ1ReJuzltvXA5yq-</project.store.messageSecretKey> | |
429 | + | |
430 | + <!-- 开通一卡通账户接口 --> | |
431 | + <interface.onecard.service.url>http://mapi.pay.et.dili7.local/partner/gateway.do</interface.onecard.service.url> | |
432 | + | |
433 | + <!-- 一卡通接口参数 --> | |
434 | + <interface.onecard.service.service>dilipay.account.info.add</interface.onecard.service.service> | |
435 | + <interface.onecard.service.sign>09e1d2cb6cb235ca1a413fdad38ec576</interface.onecard.service.sign> | |
436 | + <interface.onecard.service.signType>MD5</interface.onecard.service.signType> | |
437 | + <interface.onecard.service.partnerId>80122</interface.onecard.service.partnerId> | |
438 | + | |
439 | + <!-- 关键词过滤配置--> | |
440 | + <project.keyword.token></project.keyword.token> | |
441 | + <project.keyword.url>http://keyword.filter.1n4j.com</project.keyword.url> | |
442 | + <!-- 网关配置--> | |
443 | + <getway.log.isPrintParam>false</getway.log.isPrintParam> | |
273 | 444 | |
274 | 445 | <!-- 数据库连接池配置文件 --> |
275 | 446 | <project.dbpool.driverClass>org.mariadb.jdbc.Driver</project.dbpool.driverClass> |
276 | - <project.dbpool.jdbcUrl>jdbc:mysql://mobsite.man.db.1n4j.com:3306/mobsite_man?useUnicode=true&characterEncoding=utf8</project.dbpool.jdbcUrl> | |
277 | - <project.dbpool.username>FG_yunwei</project.dbpool.username> | |
278 | - <project.dbpool.password>vtA]7xU2h~ne_b</project.dbpool.password> | |
447 | + <project.dbpool.jdbcUrl>jdbc:mysql://192.168.60.58:3306/mobsite_man?useUnicode=true&characterEncoding=utf8</project.dbpool.jdbcUrl> | |
448 | + <project.dbpool.username>appAccPayor</project.dbpool.username> | |
449 | + <project.dbpool.password>iTDYVBtI6MX4NQ3Er2Oh</project.dbpool.password> | |
279 | 450 | <project.dbpool.idleConnectionTestPeriodInMinutes>1</project.dbpool.idleConnectionTestPeriodInMinutes> |
280 | 451 | <project.dbpool.idleMaxAgeInMinutes>4</project.dbpool.idleMaxAgeInMinutes> |
281 | 452 | <project.dbpool.partitionCount>1</project.dbpool.partitionCount> | ... | ... |