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
d9985a7f
Commit
d9985a7f
authored
Dec 07, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
桥
parent
8f28aee4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+2
-0
bridge.php
scripts/crontab/push/bridge.php
+3
-1
No files found.
application/models/Business/Goods/GoodsCommonService.php
View file @
d9985a7f
...
...
@@ -1345,6 +1345,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$minusFlag
=
false
;
for
(
$i
=
0
;
$i
<
2000
;
$i
++
){
$goodsClassStr
=
$storeOnlineGoodsClassDao
->
getChangedGoodsClass
(
\Our\ApiConst
::
plus
);
var_dump
(
$goodsClassStr
);
if
(
$goodsClassStr
&&
$plusFlag
==
false
){
$goodsClass
=
unserialize
(
$goodsClassStr
);
$this
->
checkExistOnlineGoodsClass
(
$goodsClass
);
...
...
@@ -1353,6 +1354,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
}
$goodsClassStrMinus
=
$storeOnlineGoodsClassDao
->
getChangedGoodsClass
(
\Our\ApiConst
::
minus
);
var_dump
(
$goodsClassStrMinus
);
if
(
$goodsClassStrMinus
&&
$minusFlag
==
false
){
$goodsClassMinus
=
unserialize
(
$goodsClassStrMinus
);
$this
->
checkRemoveOnlineGoodsClass
(
$goodsClassMinus
);
...
...
scripts/crontab/push/bridge.php
View file @
d9985a7f
...
...
@@ -21,8 +21,10 @@ $http->on('request', function ($request, $response) {
$memberDao
=
$info
[
'className'
]
::
getInstance
(
\Our\DbNameConst
::
masterDBConnectName
);
echo
json_encode
(
$info
);
if
(
empty
(
$info
[
'params'
])){
$res
=
call_user_func_array
(
array
(
$memberDao
,
$info
[
'method'
]));
var_dump
(
'testparams'
);
$res
=
call_user_func_array
(
array
(
$memberDao
,
$info
[
'method'
]),
array
());
}
else
{
var_dump
(
'testparams1'
);
$res
=
call_user_func_array
(
array
(
$memberDao
,
$info
[
'method'
]),
$info
[
'params'
]);
}
$res
=
(
isset
(
$res
)
&&!
empty
(
$res
))
?
$res
:
false
;
...
...
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