Fix int to string
This commit is contained in:
parent
cf3ed9355c
commit
6377c69a84
@ -6,6 +6,7 @@ import (
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/bujnlc8/wechatbot/config"
|
||||
@ -56,7 +57,7 @@ func BingSearch(msg string, nickName string) (string, error) {
|
||||
return "非常抱歉😭,网络异常,请稍后重试", err
|
||||
}
|
||||
if response.StatusCode != 200 {
|
||||
return "非常抱歉😭,网络异常,请稍后重试 [" + string(response.StatusCode) + "]", nil
|
||||
return "非常抱歉😭,网络异常,请稍后重试 [" + strconv.Itoa(response.StatusCode) + "]", nil
|
||||
}
|
||||
defer response.Body.Close()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user