Commit 2a75500e by 朱继来

调整联营即将付款定时任务

parent bbcdae37
Showing with 14 additions and 8 deletions
......@@ -1924,6 +1924,7 @@ Class OrderController extends Controller
if (!empty($order)) {
foreach ($order as $v) {
$orderInfo = array();
$wechat_data = array();
// 提前一天推送消息
$diff = $v->pay_time - time();
......@@ -1931,18 +1932,23 @@ Class OrderController extends Controller
if ($diff <= 86400) {
$currency = $v->currency == 1 ? '¥' : '$';
$orderInfo['data']['order_sn'] = $v->order_sn;
$orderInfo['data']['order_sn'] = $v->order_sn;
$orderInfo['data']['order_amount'] = $currency.$v->order_amount;
$orderInfo = json_encode($orderInfo['data'], JSON_UNESCAPED_UNICODE);
$wechat_data['keyword1']['value'] = $v->order_sn;
$wechat_data['keyword2']['value'] = $currency.$v->order_amount; // 订单金额
$orderInfo = json_encode($orderInfo['data'], JSON_UNESCAPED_UNICODE);
$wechatData = json_encode($wechat_data, JSON_UNESCAPED_UNICODE);
$orderData = [
"keyword" => $keyword,
"pf" => 1,
"k1" => $data['k1'],
"k2" => $data['k2'],
'touser' => json_encode($v->user_id),
'data' => $orderInfo,
"keyword" => $keyword,
"pf" => 1,
"k1" => $data['k1'],
"k2" => $data['k2'],
'touser' => json_encode($v->user_id),
'data' => $orderInfo,
'wechat_data' => $wechatData,
];
$temp = json_decode(curlApi($url, $orderData, "POST"), true);
......
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 sign in to comment