Commit f74f6465 authored by wwccw0591's avatar wwccw0591

upd

parent fe618b2a
......@@ -725,15 +725,15 @@ class OrderConfirmUtil {
$req_data = array('touser'=>$openid, 'template_id'=> $msg_tpl, 'form_id'=>$formId,
'data'=>array(
array('keyword1'=>array('value'=>'下单成功')),
array('keyword2'=>array('value'=>$order['order_sn'])),
array('keyword3'=>array('value'=>number_format($order['order_amount']/100, 2).'元')),
array('keyword4'=>array('value'=>$order['store_name'])),
array('keyword5'=>array('value'=>$goods_str)),
'keyword1'=>array('value'=>'下单成功'),
'keyword2'=>array('value'=>$order['order_sn']),
'keyword3'=>array('value'=>number_format($order['order_amount']/100, 2).'元'),
'keyword4'=>array('value'=>$order['store_name']),
'keyword5'=>array('value'=>$goods_str),
));
\Our\Log::getInstance()->write(json_encode($req_data), '/data/log/apptest');
// \Our\Log::getInstance()->write(json_encode($req_data), '/data/log/apptest');
$url = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=';
$result = $this->sendurl($url, $access_token, $req_data, 'post');
$result = $this->sendurl($url, $access_token, json_encode($req_data), 'post');
\Our\Log::getInstance()->write(var_export($result, true), '/data/log/apptest');
}
$this->opCacheInfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment