-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClientID 不是純英數會造成 panic 及更新 API 到文件 v2.08 版 #7
Comments
對了三竹給我的網址是 https://smsapi.mitake.com.tw |
印象中是三竹新版的 API,但還我沒測試過 XD |
@minchao 那你需要文件嗎 XD |
謝謝 引入對 v2 API 支援,可能需考慮對當前 v1 用戶的相容,初步想到有兩種作法:
|
看來光改 |
我這邊測試的專案修好他了,問題不是簡訊太長,是這裡的 pattern 有問題 (下面是我改完的) func parseMessageResponse(body io.Reader) (*MessageResponse, error) {
return parseMessageResponseByPattern(`^\[(.+?)\]$`, body)
} 因為不是大家都用數字當 if matched, _ := regexp.MatchString(pattern, text); matched {
result = new(MessageResult)
response.Results = append(response.Results, result)
} 才會造成他在填資料的時候那個目標 |
@bestpika 謝謝,可以麻煩您協助 PR 修正嗎?😃 |
@minchao 等我測完確定都沒問題再一起弄上去 |
@minchao 我想問一下你之前參考的文件是幾版的? |
@bestpika v1.98, email? |
@minchao 我發現問題在哪了,我昨天只有改長簡訊 |
我分兩段,先把那個 panic 修掉 |
The text was updated successfully, but these errors were encountered: