浏览代码

id 改为string 输出

visuddhinanda 3 年之前
父节点
当前提交
61983c7977
共有 1 个文件被更改,包括 5 次插入0 次删除
  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));
             $stmt->execute(array($book,$para,$begin,$end,$channel));
             $result = $stmt->fetchAll(PDO::FETCH_ASSOC);
             $result = $stmt->fetchAll(PDO::FETCH_ASSOC);
 			if($result){
 			if($result){
+				foreach ($result as $key => $value) {
+					# code...
+					$result[$key]['id'] = sprintf('%d',$result[$key]['id']);
+				}
+				
 				return $result;
 				return $result;
 			}
 			}
 			else{
 			else{