Merge branch 'feature/add_item' of wmtx/platform into master

审核拒绝bug修正
master
郑永星 4 years ago committed by Gogs
commit 8b9c732f6a

@ -298,8 +298,8 @@ class AggregateRelationController extends AdminController
$ids = $_REQUEST['ids']; $ids = $_REQUEST['ids'];
$dbres = $this->DBlogModel->field("id,status,verify_log")->where("id in ({$ids})")->select(); $dbres = $this->DBlogModel->field("id,status,verify_log")->where("id in ({$ids})")->select();
foreach($dbres as $k=>&$v){ foreach($dbres as $k=>&$v){
if($v['status'] != 1) continue; if($v['status'] != 1 && $v['status'] != 0) continue;
// $v['verify_log'] = json_decode($v['verify_log'],true); $v['verify_log'] = json_decode($v['verify_log'],true);
$v['verify_log']['admin_user']=$this->admininfo["username"]; $v['verify_log']['admin_user']=$this->admininfo["username"];
$v['verify_log']['admin_time']=date("Y-m-d H:i:s"); $v['verify_log']['admin_time']=date("Y-m-d H:i:s");
$v['verify_log'] = json_encode($v['verify_log']); $v['verify_log'] = json_encode($v['verify_log']);

Loading…
Cancel
Save