|
|
|
@ -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]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|