stanley-king пре 3 година
родитељ
комит
8174e23247
1 измењених фајлова са 10 додато и 0 уклоњено
  1. 10 0
      racc/control/lzrefill.php

+ 10 - 0
racc/control/lzrefill.php

@@ -111,47 +111,57 @@ class lzrefillControl extends lzbaseControl
     private function check_third($params)
     {
         if(empty($params['product_code'])) {
+            Log::record("check_third product_code",Log::ERR);
             return -9;
         }
         $pcode = $params['product_code'];
         if($this->check_pcode($pcode) == false) {
+            Log::record("check_third check_pcode",Log::ERR);
             return -10;
         }
 
         if(empty($params['quantity']) || intval($params['quantity']) < 1) {
+            Log::record("check_third quantity",Log::ERR);
             return -9;
         }
 
         $card_no = $params['mob'];
         if(empty($card_no)) {
+            Log::record("check_third mob",Log::ERR);
             return -9;
         }
 
         $third_card_type = $params['card_type'];
         if(empty($third_card_type)) {
+            Log::record("check_third card_type",Log::ERR);
             return -9;
         }
 
         if(empty($params['notifyurl'])) {
+            Log::record("check_third notifyurl",Log::ERR);
             return -9;
         }
 
         if(empty($params['ord'])) {
+            Log::record("check_third ord",Log::ERR);
             return -9;
         }
 
         if(empty($params['tim'])) {
+            Log::record("check_third tim",Log::ERR);
             return -9;
         }
 
         $tim = strtotime($params['tim']);
         if($tim === false) {
+            Log::record("check_third strtotime tim",Log::ERR);
             return -9;
         }
 
         $cur = time();
         $start = strtotime(date('Y-m-d',$cur - 1800));
         if($tim < $start || $tim > $cur + 1800) {
+            Log::record("check_third check tim",Log::ERR);
             return -9;
         }