ayHaru před 4 roky
rodič
revize
29e1263f28
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      test/TestSms.php

+ 1 - 1
test/TestSms.php

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