git 2 роки тому
батько
коміт
41a3428228
1 змінених файлів з 6 додано та 0 видалено
  1. 6 0
      Home/Lib/Action/RouteRfidKafkaAction.class.php

+ 6 - 0
Home/Lib/Action/RouteRfidKafkaAction.class.php

@@ -462,8 +462,14 @@ class RouteRfidKafkaAction extends Action {
 				'num'=>1,
 			);
 			$res=M('station_passing')->createAdd($total_data);
+			if(!$res){
+				$this->debug_log( 'station_passing_error', M('station_passing')->getLastSql());
+			}
 		}else{
 			$res=M('station_passing')->where($to_cond)->setInc('num');
+			if(!$res){
+				$this->debug_log( 'station_passing_error', M('station_passing')->getLastSql());
+			}
 		}
 		return $res;
 	}