Explorar o código

id 改为string 输出

visuddhinanda %!s(int64=4) %!d(string=hai) anos
pai
achega
61983c7977
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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{