Commit 92bce1ef by Joneq

判断sql插入限制

parent f591627e
Showing with 2 additions and 0 deletions
...@@ -2,6 +2,7 @@ package logic ...@@ -2,6 +2,7 @@ package logic
import ( import (
"encoding/json" "encoding/json"
"fmt"
"io/ioutil" "io/ioutil"
"log" "log"
"net/http" "net/http"
...@@ -118,6 +119,7 @@ func HttpGet(companyName string)(returnDatas map[string]string) { ...@@ -118,6 +119,7 @@ func HttpGet(companyName string)(returnDatas map[string]string) {
returnData["tianyancha_json"] += "||||"+string(respBody) returnData["tianyancha_json"] += "||||"+string(respBody)
} }
fmt.Println(returnData["tianyancha_json"])
if len(returnData["tianyancha_json"]) > 70000{ if len(returnData["tianyancha_json"]) > 70000{
returnData["tianyancha_json"] += "字符串过长" returnData["tianyancha_json"] += "字符串过长"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment