Commit 16d0462d by Joneq

判断sql插入限制

parent 41711a4b
...@@ -37,7 +37,6 @@ func (d *dao) GetCompanyBaseInfoByCid(c context.Context, companyId int64) (res m ...@@ -37,7 +37,6 @@ func (d *dao) GetCompanyBaseInfoByCid(c context.Context, companyId int64) (res m
tycInfo := logic.HttpGet(res["com_name"]) tycInfo := logic.HttpGet(res["com_name"])
tycInfo["com_credits_id"] = res["com_credits_id"] tycInfo["com_credits_id"] = res["com_credits_id"]
tycInfo["tyc_select_num"] = "1" tycInfo["tyc_select_num"] = "1"
fmt.Println(tycInfo)
d.UpdateCompanyBaseInfoForTyc(c,tycInfo) d.UpdateCompanyBaseInfoForTyc(c,tycInfo)
logic.SendMessage(logic.StringTurnInt64(res["legal_mobile_phone"]),"") logic.SendMessage(logic.StringTurnInt64(res["legal_mobile_phone"]),"")
} }
......
...@@ -2,7 +2,6 @@ package logic ...@@ -2,7 +2,6 @@ package logic
import ( import (
"encoding/json" "encoding/json"
"fmt"
"io/ioutil" "io/ioutil"
"log" "log"
"net/http" "net/http"
...@@ -119,7 +118,6 @@ func HttpGet(companyName string)(returnDatas map[string]string) { ...@@ -119,7 +118,6 @@ 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"]) > 40000{ if len(returnData["tianyancha_json"]) > 40000{
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