作者 lyh

变更数据

@@ -53,7 +53,7 @@ class BaseController extends Controller @@ -53,7 +53,7 @@ class BaseController extends Controller
53 */ 53 */
54 public function handleIdAndProjectId() 54 public function handleIdAndProjectId()
55 { 55 {
56 - if(isset($this->param['id']) && !empty($this->param['id'])){ 56 + if(isset($this->param['id']) && !empty($this->param['id']) && !is_array($this->param['id'])){
57 if (preg_match('/^[A-Za-z]/', $this->param['id'])) { 57 if (preg_match('/^[A-Za-z]/', $this->param['id'])) {
58 $id = Cache::get('project_'.$this->param['id']); 58 $id = Cache::get('project_'.$this->param['id']);
59 if(empty($id)){ 59 if(empty($id)){
@@ -51,7 +51,7 @@ class BaseLogic extends Logic @@ -51,7 +51,7 @@ class BaseLogic extends Logic
51 */ 51 */
52 public function handleIdAndProjectId($param) 52 public function handleIdAndProjectId($param)
53 { 53 {
54 - if(isset($param['id']) && !empty($param['id'])){ 54 + if(isset($param['id']) && !empty($param['id']) && !is_array($param['id'])){
55 if (preg_match('/^[A-Za-z]/', $param['id'])) { 55 if (preg_match('/^[A-Za-z]/', $param['id'])) {
56 $id = Cache::get('project_'.$param['id']); 56 $id = Cache::get('project_'.$param['id']);
57 if(empty($id)){ 57 if(empty($id)){