Commit 43640a5b by 朱继来

调整定时任务

parent bb535407
Showing with 7 additions and 1 deletions
......@@ -1054,6 +1054,7 @@ Class OrderController extends Controller
->whereIn('status', ['2', '3'])
->whereNotIn('user_id', $this->testMobile())
->where('is_type', '=', 0)
->where('pay_time', '>', time())
->select('order_id', 'order_sn', 'user_id', 'order_amount', 'currency', 'pay_time')
->orderBy('create_time', 'DESC')
->get();
......@@ -1074,13 +1075,18 @@ Class OrderController extends Controller
if ($diff <= 86400) {
$currency = $v->currency == 1 ? '¥' : '$';
$orderInfo['data']['order_sn'] = $v->order_sn;
$orderInfo['data']['order_amount'] = $currency.$v->order_amount;
$orderInfo = json_encode($orderInfo['data'], JSON_UNESCAPED_UNICODE);
$orderData = [
"keyword" => $keyword,
"pf" => 1,
"k1" => $data['k1'],
"k2" => $data['k2'],
'touser' => json_encode($v->user_id),
'data' => json_encode([$v->order_sn, $currency.$v->order_amount]),
'data' => $orderInfo,
];
$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