http = '預(yù)先規(guī)定的返回內(nèi)容';
// 假設(shè) http 返回id,content字段
if($http = '正確'){
// 根據(jù)id 更新本地數(shù)據(jù)庫對應(yīng)content字段, 及 status= 1
// 本地數(shù)據(jù)庫 有個 status = 0 默認, 需要再更新為 status = 1
$db->update('table', [
// medoo field'content' => $http['content'],
'status' => 1
],[
// medoo where
'id' => $http['id']onMessage回調(diào)中 `$db->update` 這里,
### 偶爾或經(jīng)常在日志提示成功時,數(shù)據(jù)庫相關(guān)的內(nèi)容也不會更新
比如:日志提示成功了,數(shù)據(jù)庫 `content` 字段確實被更新了,但 `status= 0 默認` 字段依然是默認的,期間運行中也沒有任何報錯
又或者: 日志也提示成功了, 但數(shù)據(jù)庫中什么也沒更新 `content`和`status = 0 默認` 都沒用被更新, 同樣也沒有報錯