Commit c823d8b1 by Joneq

判断sql插入限制

parent 4cd97c42
Showing with 3 additions and 1 deletions
......@@ -2,6 +2,7 @@ package logic
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
......@@ -118,7 +119,8 @@ func HttpGet(companyName string)(returnDatas map[string]string) {
returnData["tianyancha_json"] += "||||"+string(respBody)
}
if len(returnData["tianyancha_json"]) < 130000{
fmt.Println(len(returnData["tianyancha_json"]))
if len(returnData["tianyancha_json"]) > 130000{
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