Przeglądaj źródła

id 改为string 输出

visuddhinanda 3 lat temu
rodzic
commit
61983c7977
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      public/app/usent/function.php

+ 5 - 0
public/app/usent/function.php

@@ -88,6 +88,11 @@ class SentPr{
             $stmt->execute(array($book,$para,$begin,$end,$channel));
             $result = $stmt->fetchAll(PDO::FETCH_ASSOC);
 			if($result){
+				foreach ($result as $key => $value) {
+					# code...
+					$result[$key]['id'] = sprintf('%d',$result[$key]['id']);
+				}
+				
 				return $result;
 			}
 			else{