Browse Source

短信

master
lemon 5 years ago
parent
commit
9a5e2a0f50
  1. 16
      app/Console/Commands/BalanceDue.php

16
app/Console/Commands/BalanceDue.php

@ -3,6 +3,7 @@
namespace App\Console\Commands;
use App\Common\OrderStatus;
use App\Common\PayType;
use App\Models\Demand;
use App\Models\Order;
use App\Service\SmsService;
@ -50,19 +51,8 @@ class BalanceDue extends Command
$sms = new SmsService();
foreach ($orders as $order) {
if (!empty($order->mobile)) {
$sms->send(
'pay',
[
$order->order_no,
'定金/订金',
$order->timeout,
'定金/订金',
'小程序'
],
[
$order->mobile
],
);
$type = $order->pay_type == PayType::DEPOSIT_PAY ? '订金' : '定金';
$sms->send('pay',['订单号:'.$order->orderNumber,$type,$order->timeout,$type,'小程序'],[$order->mobile]);
}
}
}

Loading…
Cancel
Save