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
da7e2fa2
Commit
da7e2fa2
authored
Jan 10, 2019
by
testshenbd
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into master_dev
parents
13e55d1f
39ed2be0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
OrderConfirmUtil.php
application/library/Order/OrderConfirmUtil.php
+17
-4
GroupSaleService.php
application/models/Business/Goods/GroupSaleService.php
+5
-3
No files found.
application/library/Order/OrderConfirmUtil.php
View file @
da7e2fa2
...
@@ -727,15 +727,28 @@ class OrderConfirmUtil {
...
@@ -727,15 +727,28 @@ class OrderConfirmUtil {
$authInfo
=
$sess
->
get
(
'wxAuthInfo'
);
$authInfo
=
$sess
->
get
(
'wxAuthInfo'
);
$openid
=
$authInfo
[
'openid'
];
$openid
=
$authInfo
[
'openid'
];
$
req_data
=
array
(
'touser'
=>
$openid
,
'template_id'
=>
$msg_tpl
,
'form_id'
=>
$formId
,
$
tpl_datas
=
array
();
'page'
=>
'pages/orders/detail/index?id='
.
$orderId
,
if
(
$msg_tpl
==
''
)
{
'data'
=>
array
(
$tpl_datas
=
array
(
'keyword1'
=>
array
(
'value'
=>
'下单成功'
),
'keyword1'
=>
array
(
'value'
=>
'下单成功'
),
'keyword2'
=>
array
(
'value'
=>
$order
[
'order_sn'
]),
'keyword2'
=>
array
(
'value'
=>
$order
[
'order_sn'
]),
'keyword3'
=>
array
(
'value'
=>
number_format
(
$order
[
'order_amount'
]
/
100
,
2
)
.
'元'
),
'keyword3'
=>
array
(
'value'
=>
number_format
(
$order
[
'order_amount'
]
/
100
,
2
)
.
'元'
),
'keyword4'
=>
array
(
'value'
=>
$order
[
'store_name'
]),
'keyword4'
=>
array
(
'value'
=>
$order
[
'store_name'
]),
'keyword5'
=>
array
(
'value'
=>
$goods_str
),
'keyword5'
=>
array
(
'value'
=>
$goods_str
),
));
);
}
else
{
$tpl_datas
=
array
(
'keyword1'
=>
array
(
'value'
=>
'下单成功'
),
'keyword2'
=>
array
(
'value'
=>
$order
[
'order_sn'
]),
'keyword3'
=>
array
(
'value'
=>
date
(
'Y-m-d H:i'
,
TIMESTAMP
)),
'keyword4'
=>
array
(
'value'
=>
number_format
(
$order
[
'order_amount'
]
/
100
,
2
)
.
'元'
),
'keyword5'
=>
array
(
'value'
=>
$order
[
'store_name'
]),
'keyword6'
=>
array
(
'value'
=>
$goods_str
),
);
}
$req_data
=
array
(
'touser'
=>
$openid
,
'template_id'
=>
$msg_tpl
,
'form_id'
=>
$formId
,
'page'
=>
'pages/orders/detail/index?id='
.
$orderId
,
'data'
=>
$tpl_datas
);
// \Our\Log::getInstance()->write(json_encode($req_data), '/data/log/apptest');
// \Our\Log::getInstance()->write(json_encode($req_data), '/data/log/apptest');
$json
=
$wechatCommon
->
sendTemplateMessage
(
$access_token
,
$req_data
);
$json
=
$wechatCommon
->
sendTemplateMessage
(
$access_token
,
$req_data
);
// \Our\Log::getInstance()->write($json, '/data/log/apptest');
// \Our\Log::getInstance()->write($json, '/data/log/apptest');
...
...
application/models/Business/Goods/GroupSaleService.php
View file @
da7e2fa2
...
@@ -274,9 +274,11 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
...
@@ -274,9 +274,11 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
foreach
(
$storeIds
as
$key
){
foreach
(
$storeIds
as
$key
){
$tempReturnCart
=
$result
[
$key
];
$tempReturnCart
=
$result
[
$key
];
$tempStore
=
$storeDao
->
get
(
$key
,
false
,
false
);
$tempStore
=
$storeDao
->
get
(
$key
,
false
,
false
);
if
(
$tempStore
)
{
//如果存在店铺数据
$tempReturnCart
[
'inAreaFlag'
]
=
$storeDao
->
checkAddressInServiceArea
(
$address
,
$tempStore
);
$tempReturnCart
[
'inAreaFlag'
]
=
$storeDao
->
checkAddressInServiceArea
(
$address
,
$tempStore
);
$newResult
[]
=
$tempReturnCart
;
$newResult
[]
=
$tempReturnCart
;
}
}
}
return
array
(
'totalCount'
=>
count
(
$storeCartList
),
'list'
=>
$newResult
);
return
array
(
'totalCount'
=>
count
(
$storeCartList
),
'list'
=>
$newResult
);
}
}
return
array
(
'totalCount'
=>
\Our\ApiConst
::
zero
,
'list'
=>
array
());
return
array
(
'totalCount'
=>
\Our\ApiConst
::
zero
,
'list'
=>
array
());
...
...
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