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
b130e379
Commit
b130e379
authored
Nov 07, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccw
parent
1d6ceb48
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
14 deletions
+33
-14
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+1
-0
RefundService.php
application/models/Business/Order/RefundService.php
+2
-4
application.ini
conf/application.ini
+10
-10
warning.php
public/clienttest/shopkeeper/warning.php
+20
-0
No files found.
application/models/Business/Goods/GoodsCommonService.php
View file @
b130e379
...
...
@@ -64,6 +64,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
//获得列表
if
(
$datas
=
$goodsDao
->
getList
(
implode
(
$where
,
' and '
),
$this
->
goodsStorageField
))
{
foreach
(
$datas
as
$key
=>
$val
)
{
$datas
[
$key
][
'goodsImage'
]
=
\Our\ImageUtil
::
getGoodsImgUrl
(
$val
[
'goodsImage'
],
\Our\ApiConst
::
goodsSmallSize
);
$datas
[
$key
][
'goodsAttr'
]
=
$goodsDao
->
getFormatGoodsAttr
(
$val
[
'goodsAttr'
]);
}
}
...
...
application/models/Business/Order/RefundService.php
View file @
b130e379
...
...
@@ -875,10 +875,8 @@ class RefundServiceModel extends \Business\AbstractModel
if
(
!
empty
(
$refundReturn
[
'picInfo'
])){
$refundReturn
[
'picInfo'
]
=
$refundReturnDao
->
getRefundPics
(
$refundReturn
[
'picInfo'
][
'buyer'
]);
}
$refundReturn
[
'couponAmount'
]
=
(
$order
[
'goodsAmount'
]
+
$order
[
'shippingFee'
])
-
$order
[
'orderAmount'
];
//优惠券金额
$refundReturn
[
'orderAmount'
]
=
$order
[
'orderAmount'
]
;
$refundReturn
[
'goodsAmount'
]
=
$order
[
'goodsAmount'
];
$refundReturn
[
'shippingFee'
]
=
$order
[
'shippingFee'
];
$orderExtent
=
$orderDao
->
getClienOrderCommon
(
$order
);
$refundReturn
=
array_merge
(
$refundReturn
,
$orderExtent
);
// $value['orderAmount'] = $value['orderAmount'];
$refundReturn
[
'reciverInfo'
]
=
unserialize
(
$this
->
orderCommon
[
'reciverInfo'
]);
if
(
$refundReturn
[
'refundType'
]
==
ApiConst
::
refundTypeGoods
)
{
...
...
conf/application.ini
View file @
b130e379
...
...
@@ -284,31 +284,31 @@ push.open=1
[ccwdevelop : common]
; 数据库配置
resources.database.params.driver
=
"pdo_mysql"
resources.database.params.hostname
=
"1
92.168.80.18
"
resources.database.params.hostname
=
"1
27.0.0.1
"
resources.database.params.port
=
3306
resources.database.params.database
=
"qmcs"
resources.database.params.username
=
"root"
resources.database.params.password
=
"
123456
"
resources.database.params.password
=
"
root
"
resources.database.params.charset
=
"UTF8"
resources.database.params.driver_options.1002
=
"SET NAMES utf8"
; 从库配置
resources.database.slave.params.driver
=
"pdo_mysql"
resources.database.slave.params.hostname
=
"1
92.168.80.18
"
resources.database.slave.params.hostname
=
"1
27.0.0.1
"
resources.database.slave.params.port
=
3306
resources.database.slave.params.database
=
"qmcs"
resources.database.slave.params.username
=
"root"
resources.database.slave.params.password
=
"
123456
"
resources.database.slave.params.password
=
"
root
"
resources.database.slave.params.charset
=
"UTF8"
resources.database.slave.params.driver_options.1002
=
"SET NAMES utf8"
; 从库配置
resources.database.drawSource.params.driver
=
"pdo_mysql"
resources.database.drawSource.params.hostname
=
"1
92.168.80.18
"
resources.database.drawSource.params.hostname
=
"1
27.0.0.1
"
resources.database.drawSource.params.port
=
3306
resources.database.drawSource.params.database
=
"drawSource"
resources.database.drawSource.params.username
=
"root"
resources.database.drawSource.params.password
=
"
123456
"
resources.database.drawSource.params.password
=
"
root
"
resources.database.drawSource.params.charset
=
"UTF8"
resources.database.drawSource.params.driver_options.1002
=
"SET NAMES utf8"
...
...
@@ -324,10 +324,10 @@ resources.database.mongo.params.driver_options.1002 = "SET NAMES utf8"
password.key
=
'~!@#$`1234qwertasdfgzxcvb'
;
redis.database.params.host
=
"1
27.0.0.
1"
redis.database.params.host
=
"1
92.168.1.20
1"
redis.database.params.port
=
"6379"
redis.database.params.prefix
=
"qm_"
redis.database.params.password
=
"
23456ertyu
"
redis.database.params.password
=
""
out.config
=
"/data/config"
;
;锁文件
...
...
@@ -336,8 +336,8 @@ out.locks="/data/locks";
;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
...
...
public/clienttest/shopkeeper/warning.php
0 → 100644
View file @
b130e379
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
简单的html5 File测试 for pic2base64
</title>
<style>
</style>
</head>
<body>
<form
action=
"/client/shopkeeper/warning"
method=
"post"
>
用户登录状态key:
<input
name=
"data[key]"
value=
"91d068d63d3658922ed683e8969c8036"
/><br
/>
<p
id=
"img_area"
></p>
<input
type=
"submit"
value=
"提交"
>
</form>
</body>
</html>
\ No newline at end of file
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