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
3034c421
Commit
3034c421
authored
Dec 28, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upd
parent
43e75838
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
OrderConfirmUtil.php
application/library/Order/OrderConfirmUtil.php
+6
-6
No files found.
application/library/Order/OrderConfirmUtil.php
View file @
3034c421
...
...
@@ -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
);
...
...
@@ -741,7 +741,7 @@ class OrderConfirmUtil {
* Date: 2018/12/27 0027
* Time: 下午 3:15
*/
/*
private function getLitAccesstoken(){
private
function
getLitAccesstoken
(){
$model_wx
=
\DAO\MbWxModel
::
getInstance
();
$weixin
=
$model_wx
->
getOne
(
'id,lit_appid,lit_appsecret,lit_accesstoken,lit_expirestime'
,
'id=1'
);
$access_token
=
''
;
...
...
@@ -761,7 +761,7 @@ class OrderConfirmUtil {
$access_token
=
$weixin
[
'lit_accesstoken'
];
}
return
$access_token
;
}
*/
}
/**
* curl请求
...
...
@@ -770,7 +770,7 @@ class OrderConfirmUtil {
* @param $data
* @param $method
*/
/*
private function sendurl($url, $access_token = '', $data = '', $method = 'get', $header = '') {
private
function
sendurl
(
$url
,
$access_token
=
''
,
$data
=
''
,
$method
=
'get'
,
$header
=
''
)
{
//
if
(
strtolower
(
$method
)
==
'post'
)
{
$curl
=
curl_init
();
...
...
@@ -807,7 +807,7 @@ class OrderConfirmUtil {
$r
=
curl_exec
(
$curl
);
curl_close
(
$curl
);
return
$r
;
}
*/
}
public
function
pushMessage
(){
if
(
$this
->
pushMessageOrders
){
...
...
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