<div id="tip_error" class="row"> <div class="span7"> <div class="error"> 由于新浪微博 API 的请求限制,服务暂时无法使用,请稍后重试,谢谢 :) </div> </div> <div class="span1"> </div> </div> HTML; } // Delete weibo by ids if (isset($_POST['del_ids']) && !empty($_POST['del_ids']) && empty($tip)) { $id_arr = explode(',', $_POST['del_ids']); foreach ($id_arr as $id) { $result = $c->delete($id); if (isset($result['error']) && !empty($result['error'])) { // fail $err_content = "错误原因:" . $result['error'] . " -- 错误代码:" . $result['error_code']; error_log("id:" . $id . " -- error:" . $result['error'] . " -- error_code:" . $result['error_code'] . "\n\n"); $tip = <<<HTML <div id="tip_error" class="row"> <div class="span7"> <div class="error"> 删除失败:{$err_content} </div> </div> <div class="span1"> </div> </div> HTML;