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
21410d82
Commit
21410d82
authored
Nov 20, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into lyz_version1
parents
3a5c7bd9
5e9cd20e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
13 deletions
+35
-13
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+1
-2
DeliveryService.php
application/models/Business/Store/DeliveryService.php
+4
-4
application.ini
conf/application.ini
+30
-7
No files found.
application/models/Business/Goods/GoodsCommonService.php
View file @
21410d82
...
...
@@ -68,12 +68,11 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$datas
[
$key
][
'goodsAttr'
]
=
$goodsDao
->
getFormatGoodsAttr
(
$val
[
'goodsAttr'
]);
}
}
//获得售后商品列表getOrderGoodsByRecIds
if
(
!
empty
(
$datas
))
{
return
$datas
;
}
else
{
return
new
\stdClass
();
return
Array
();
}
}
/**
...
...
application/models/Business/Store/DeliveryService.php
View file @
21410d82
...
...
@@ -47,15 +47,15 @@ class DeliveryServiceModel extends \Business\AbstractModel
$qmDeliveryManLogData
[
'distribution_fee'
]
=
$data
[
'distributionFee'
];
$qmDeliveryManLogData
[
'order_type'
]
=
$data
[
'orderType'
];
$qmDeliveryManLogData
[
'get_time'
]
=
TIMESTAMP
;
$qmDeliveryWhere
[
'diliveryman_id'
]
=
$qmDeliveryManLogData
[
'diliveryman_id'
];
//
$qmDeliveryWhere['diliveryman_id']= $qmDeliveryManLogData['diliveryman_id'];
$qmDeliveryWhere
[
'order_id'
]
=
$qmDeliveryManLogData
[
'order_id'
];
$qmDeliveryWhere
[
'order_type'
]
=
$qmDeliveryManLogData
[
'order_type'
];
$isRepeat
=
$qmDeliveryManLog
->
find
(
$qmDeliveryWhere
);
if
(
$isRepeat
){
$orderDao
->
db
->
doRollback
();
ErrorModel
::
throwException
(
CodeConfigModel
::
alreadyExsitQmDeliveryLog
);
$res
=
$qmDeliveryManLog
->
update
(
$qmDeliveryWhere
,
$qmDeliveryManLogData
);
}
else
{
$res
=
$qmDeliveryManLog
->
insert
(
$qmDeliveryManLogData
);
}
$res
=
$qmDeliveryManLog
->
insert
(
$qmDeliveryManLogData
);
if
(
!
res
)
{
$orderDao
->
db
->
doRollback
();
ErrorModel
::
throwException
(
CodeConfigModel
::
selectDeliveryFail
);
...
...
conf/application.ini
View file @
21410d82
...
...
@@ -245,20 +245,43 @@ resources.database.slave.params.password = "123456"
resources.database.slave.params.charset
=
"UTF8"
resources.database.slave.params.driver_options.1002
=
"SET NAMES utf8"
push.clientHost
=
"ws://192.168.80.18:9502"
redis.database.params.host
=
"127.0.0.1"
; mongodb
resources.database.mongo.params.driver
=
"scram"
resources.database.mongo.params.hostname
=
"192.168.1.201"
resources.database.mongo.params.port
=
27017
resources.database.mongo.params.database
=
"qmcs"
resources.database.mongo.params.username
=
"qmcs"
resources.database.mongo.params.password
=
"123456asdfgh"
resources.database.mongo.params.charset
=
"UTF8"
resources.database.mongo.params.driver_options.1002
=
"SET NAMES utf8"
password.key
=
'~!@#$`1234qwertasdfgzxcvb'
;
redis.database.params.host
=
"192.168.1.201"
redis.database.params.port
=
"6379"
redis.database.params.prefix
=
"qm_"
out.config
=
"/data/config"
redis.database.params.password
=
""
out.config
=
"/data/config"
;
;锁文件
out.locks="/data/locks";
; redis配置
push.user.service.id
=
293
push.user.service.type
=
7
;redis.database.params.password = "test"
;推送配置
push.clientHost
=
"ws://192.168.
80.18
:9502"
push.host
=
"192.168.
80.18
"
push.clientHost
=
"ws://192.168.
1.201
:9502"
push.host
=
"192.168.
1.201
"
push.port
=
"9503"
push.open
=
1
push.user.service.id
=
293
push.user.service.type
=
7
elastic.master.host
=
"192.168.1.201"
elastic.master.port
=
"9200"
elastic.master.scheme
=
"http"
;
;resources.database.params.hostname = "127.0.0.1"
;resources.database.params.database = "database"
;resources.database.params.username = "username"
;resources.database.params.password = "password"
[ccwdevelop : common]
; 数据库配置
...
...
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