转发到webhook时返回http状态200即为成功

This commit is contained in:
pppscn 2021-03-31 09:11:51 +08:00
parent 1d27834533
commit 367ccaaf19

View File

@ -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);