Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
69f91878
Commit
69f91878
authored
Oct 22, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into lyz
parents
0b41a8b0
4dd6a273
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+1
-1
application.ini
conf/application.ini
+2
-2
news_server.php
scripts/crontab/push/news_server.php
+1
-1
No files found.
application/models/Business/Goods/GoodsCommonService.php
View file @
69f91878
...
@@ -24,7 +24,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
...
@@ -24,7 +24,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyCommonId
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyCommonId
);
}
}
$commonGoodsInstance
=
\DAO\GoodsCommonModel
::
getInstance
();
$commonGoodsInstance
=
\DAO\GoodsCommonModel
::
getInstance
();
$commonInfo
=
$
this
->
getOneByIdCache
(
$goodsCommonId
);
$commonInfo
=
$
commonGoodsInstance
->
getOneByIdCache
(
$goodsCommonId
);
$saleNum
=
$commonGoodsInstance
->
getGoodsSaleNumFromCache
(
$goodsCommonId
);
$saleNum
=
$commonGoodsInstance
->
getGoodsSaleNumFromCache
(
$goodsCommonId
);
$commonInfo
[
'sale_num'
]
=
$saleNum
;
$commonInfo
[
'sale_num'
]
=
$saleNum
;
if
(
!
$commonInfo
){
if
(
!
$commonInfo
){
...
...
conf/application.ini
View file @
69f91878
...
@@ -57,7 +57,7 @@ elastic.master.host="172.16.142.15"
...
@@ -57,7 +57,7 @@ elastic.master.host="172.16.142.15"
elastic.master.port
=
"9200"
elastic.master.port
=
"9200"
elastic.master.scheme
=
"http"
;
elastic.master.scheme
=
"http"
;
password.key
=
'~!@#$`1234qwertasdfgzxcvb'
;
//生产环境
//生产环境
[product : common]
[product : common]
; 数据库配置
; 数据库配置
...
@@ -103,7 +103,7 @@ push.user.service.type=7
...
@@ -103,7 +103,7 @@ push.user.service.type=7
elastic.master.host
=
"127.0.0.1"
elastic.master.host
=
"127.0.0.1"
elastic.master.port
=
"9200"
elastic.master.port
=
"9200"
elastic.master.scheme
=
"http"
;
elastic.master.scheme
=
"http"
;
password.key='~!@#$`1234qwertasdfgzxcvb';
; 生 产环境配置
; 生 产环境配置
[pre : common]
[pre : common]
...
...
scripts/crontab/push/news_server.php
View file @
69f91878
...
@@ -94,7 +94,7 @@ $serv->on('Message', function($server, $frame) use($conf){
...
@@ -94,7 +94,7 @@ $serv->on('Message', function($server, $frame) use($conf){
$sendMessage
[
'message'
][
'href'
]
=
isset
(
$rev_data
[
'messageHref'
])
?
$rev_data
[
'messageHref'
]
:
''
;
$sendMessage
[
'message'
][
'href'
]
=
isset
(
$rev_data
[
'messageHref'
])
?
$rev_data
[
'messageHref'
]
:
''
;
$sendMessage
[
'message'
][
'price'
]
=
isset
(
$rev_data
[
'messagePrice'
])
?
$rev_data
[
'messagePrice'
]
:
''
;
$sendMessage
[
'message'
][
'price'
]
=
isset
(
$rev_data
[
'messagePrice'
])
?
$rev_data
[
'messagePrice'
]
:
''
;
$sendMessage
[
'message'
][
'thumb'
]
=
isset
(
$rev_data
[
'messageThumb'
])
?
$rev_data
[
'messageThumb'
]
:
''
;
$sendMessage
[
'message'
][
'thumb'
]
=
isset
(
$rev_data
[
'messageThumb'
])
?
$rev_data
[
'messageThumb'
]
:
''
;
$sendMessage
[
'message'
][
'gmtCreate'
]
=
TIMESTAMP
;
$sendMessage
[
'message'
][
'gmtCreate'
]
=
time
()
;
$sendMessage
[
'fromId'
]
=
$memberId
;
$sendMessage
[
'fromId'
]
=
$memberId
;
$sendMessage
[
'fromUserId'
]
=
$rev_data
[
'fromUserId'
];
$sendMessage
[
'fromUserId'
]
=
$rev_data
[
'fromUserId'
];
$sendMessage
[
'fromUserName'
]
=
$rev_data
[
'fromUserName'
];
$sendMessage
[
'fromUserName'
]
=
$rev_data
[
'fromUserName'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment