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
1b7a5d85
Commit
1b7a5d85
authored
Dec 28, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upd
parent
c891a7e2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
OrderConfirmUtil.php
application/library/Order/OrderConfirmUtil.php
+3
-3
OrderService.php
application/models/Business/Order/OrderService.php
+1
-1
MbWx.php
application/models/DAO/MbWx.php
+0
-2
No files found.
application/library/Order/OrderConfirmUtil.php
View file @
1b7a5d85
...
...
@@ -710,7 +710,7 @@ class OrderConfirmUtil {
}
$orderModel
->
db
->
doCommit
();
//订单通过小程序表单提交过来
if
(
$formId
&&
(
$access_token
=
$this
->
getLitAccesstoken
()))
{
/*
if($formId && ($access_token = $this->getLitAccesstoken())) {
$settingDAO = \DAO\SettingModel::getInstance();
$msg_tpl = $settingDAO->getListCache(array('wxapp_order_create_tpl'))['wxapp_order_create_tpl'];
$goods_str = '';
...
...
@@ -729,7 +729,7 @@ class OrderConfirmUtil {
));
$url = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=';
$result = $this->sendurl($url, $access_token, $req_data, 'post');
}
}
*/
$this
->
opCacheInfo
();
$this
->
pushMessage
();
return
array
(
'needPayFlag'
=>
$needPayFlag
,
'paySn'
=>
$paySn
);
...
...
@@ -752,7 +752,7 @@ class OrderConfirmUtil {
$update_data
=
array
();
$update_data
[
'lit_accesstoken'
]
=
$access_info
[
'access_token'
];
$update_data
[
'lit_expirestime'
]
=
time
()
+
$access_info
[
'expires_in'
]
-
1800
;
$update_data
[
'lit_expirestime'
]
=
TIMESTAMP
+
$access_info
[
'expires_in'
]
-
1800
;
$where
=
array
(
'id'
=>
$weixin
[
'id'
]);
$result
=
$model_wx
->
update
(
$update_data
,
$where
);
...
...
application/models/Business/Order/OrderService.php
View file @
1b7a5d85
...
...
@@ -162,7 +162,7 @@ class OrderServiceModel extends \Business\AbstractModel
}
else
{
$goods_str
.=
$goods_datas
[
0
][
'goods_name'
];
}
$req_data
=
array
(
'touser'
=>
$
this
->
member
[
'member_wxopenid'
],
'template_id'
=>
$msg_tpl
,
$req_data
=
array
(
'touser'
=>
$member
[
'member_wxopenid'
],
'template_id'
=>
$msg_tpl
,
'form_id'
=>
$order
[
'prepay_id'
],
'data'
=>
array
(
array
(
'keyword1'
=>
array
(
'value'
=>
$order
[
'order_sn'
])),
...
...
application/models/DAO/MbWx.php
View file @
1b7a5d85
...
...
@@ -12,8 +12,6 @@ namespace DAO;
*/
class
MbWxModel
extends
\DAO\AbstractModel
{
/**
* 表名
*
...
...
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