mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-15 18:13:57 +00:00
转发到webhook时返回http状态200即为成功
This commit is contained in:
parent
1d27834533
commit
367ccaaf19
@ -94,8 +94,8 @@ public class SenderWebNotifyMsg {
|
||||
final String responseStr = response.body().string();
|
||||
Log.d(TAG, "Code:" + response.code() + " Response:" + responseStr);
|
||||
|
||||
//TODO:粗略解析是否发送成功
|
||||
if (responseStr.contains("\"code\":1")) {
|
||||
//返回http状态200即为成功
|
||||
if (200 == response.code()) {
|
||||
LogUtil.updateLog(logId, 1, responseStr);
|
||||
} else {
|
||||
LogUtil.updateLog(logId, 0, responseStr);
|
||||
|
Loading…
Reference in New Issue
Block a user