[4] ErrorException in 93b45309d4928fde1db96d63663cda94.php line 433

语法错误: unexpected 'ids' (T_STRING)

  1. if($_cid == -1) $_cid = input('cid');
  2. if ($_cid > 0 || substr($_cid, 0, 1) == '$') {
  3. $_category = new app\index\model\CategoryModel();
  4. if (strpos($_cid, ',')) {
  5. $_cidarr = explode(',', $_cid);
  6. $_ids = [];
  7. foreach ($_cidarr as $_k => $_v) {
  8. $_ids = array_merge($_ids, $_category->getChildsId($_category->getCategory(), $_v, true));
  9. }
  10. }else{
  11. $_ids = $_category->getChildsId($_category->getCategory(), $_cid, true);
  12. }
  13. $_where = array('create_time' => array('LT', time()), 'cid'=> array('IN', $_ids));
  14. }else {
  15. $_where = array('create_time' => array('LT', time()));
  16. }