diff --git a/Application/Home/Controller/TestResourceController.class.php b/Application/Home/Controller/TestResourceController.class.php index e34d57fcf..7a124af9a 100644 --- a/Application/Home/Controller/TestResourceController.class.php +++ b/Application/Home/Controller/TestResourceController.class.php @@ -31,10 +31,10 @@ class TestResourceController extends BaseController $map['tab_test_resource.role_name']=['like','%'.I('role_name').'%']; } if(!empty(I('user_account'))){ - $map['tab_test_resource.user_account']=I('user_account'); + $map['tab_test_resource.user_account']=['like','%'.I('user_account').'%']; } if(!empty(I('promote_name'))){ - $map['tab_test_resource.promote_account']=I('promote_name'); + $map['tab_test_resource.promote_account']=['like','%'.I('promote_name').'%']; } $map['user.promote_id']=session("promote_auth.pid"); @@ -282,6 +282,9 @@ class TestResourceController extends BaseController $map['create_time'] = array('BETWEEN',array(strtotime($_REQUEST['start']),strtotime($_REQUEST['end'])+24*60*60-1)); unset($_REQUEST['start']);unset($_REQUEST['end']); } + + $map['test.promote_id'] = get_pid(); + // $res = D("test_resource")->getResourceCout($map,$page,$row); // dump($res); diff --git a/Application/Home/Model/TestResourceModel.class.php b/Application/Home/Model/TestResourceModel.class.php index d1d729355..44cfe3928 100644 --- a/Application/Home/Model/TestResourceModel.class.php +++ b/Application/Home/Model/TestResourceModel.class.php @@ -47,7 +47,7 @@ class TestResourceModel extends Model{ if(empty($res)){ return $res; } - $rescount = $this + $rescount = $this->table("tab_test_resource as test") ->where($map) ->group("user_id,game_id,server_id") ->buildSql(); diff --git a/Application/Home/View/default/Article/article/detail.html b/Application/Home/View/default/Article/article/detail.html index 136aaa636..17dfe2caf 100644 --- a/Application/Home/View/default/Article/article/detail.html +++ b/Application/Home/View/default/Article/article/detail.html @@ -1,11 +1,20 @@ - + + +
+ 返回 +
diff --git a/Data/update.sql b/Data/update.sql index e5be98314..573461d49 100644 --- a/Data/update.sql +++ b/Data/update.sql @@ -171,4 +171,7 @@ alter table `tab_giftbag` modify COLUMN `giftbag_version` tinyint(2) COMMENT ' -- 2019-10-17 zyx -- ---------------------------- ALTER TABLE `tab_test_resource` -MODIFY COLUMN `user_account` varchar(50) BINARY CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户帐号' AFTER `user_id`; \ No newline at end of file +MODIFY COLUMN `user_account` varchar(50) BINARY CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户帐号' AFTER `user_id`; +ALTER TABLE `tab_test_resource` +MODIFY COLUMN `role_name` varchar(50) BINARY CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '角色名' AFTER `phone`, +MODIFY COLUMN `promote_account` varchar(30) BINARY CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '所属推广员账号' AFTER `promote_id`; \ No newline at end of file