|
@@ -45,7 +45,7 @@ class TestSms extends TestCase
|
|
|
|
|
|
$merchants = Model('merchant')->getMerchantList([],'','','merchant.*,member.available_predeposit');
|
|
|
foreach ($merchants as $merchant){
|
|
|
- if($merchant['available_predeposit'] < $merchant['alarm_amount'] || $merchant['available_predeposit'] < 10000 && !empty($merchant['contact_phone']))
|
|
|
+ if(($merchant['available_predeposit'] < $merchant['alarm_amount'] && !empty($merchant['contact_phone']))|| $merchant['available_predeposit'] < 10000)
|
|
|
{
|
|
|
QueueClient::push('sendSMS', ['mobile'=>$merchant['contact_phone'],'type'=>'balance_warning','datas' => [date("m月d日H时") , $merchant['available_predeposit']]]);
|
|
|
}
|