|
|
|
@ -1409,7 +1409,10 @@ class OrderController extends Controller
|
|
|
|
public function BatchCancel()
|
|
|
|
public function BatchCancel()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$WaitingPaymentTime = config('app.globals.WaitingPaymentTime');//支付等待時間
|
|
|
|
$WaitingPaymentTime = config('app.globals.WaitingPaymentTime');//支付等待時間
|
|
|
|
$orderInfos = DB::table('orders')->where(['status' => 1])->get();
|
|
|
|
$orderInfos = DB::table('orders')
|
|
|
|
|
|
|
|
->where(['status' => 1])
|
|
|
|
|
|
|
|
->where('source', 'not like', '%线下体检预约%')
|
|
|
|
|
|
|
|
->get();
|
|
|
|
foreach ($orderInfos as $k => $orderInfo) {
|
|
|
|
foreach ($orderInfos as $k => $orderInfo) {
|
|
|
|
$person = DB::table('web_user_person')->where(['id' => $orderInfo->person_id])->first();
|
|
|
|
$person = DB::table('web_user_person')->where(['id' => $orderInfo->person_id])->first();
|
|
|
|
$datetime = new DateTime($orderInfo->created_at);
|
|
|
|
$datetime = new DateTime($orderInfo->created_at);
|
|
|
|
|