select * from com_goods where id in (124,281,282,,283,284,323,324) and status = 1
执行错误: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ',283,284,323,324) and status = 1' at line 1

57.      {
58.          $this->arrSql[] = $sql;
59.          if( $result mysqli_query($this->conn$sql) ){
60.              return $result;
61.          }else{
62.              spError("{$sql}<br />执行错误: " mysqli_error($this->conn));
63.          }
64.      }
65.      
66.      /**
67.       返回影响行数
21.       
22.       * @param sql  执行的SQL语句
23.       */
24.      public function getArray($sql)
25.      {
26.          if( ! $result $this->exec($sql) )return array();
27.          if( ! mysqli_num_rows($result) )return array();
28.          $rows = array();
29.          while($rows[] = mysqli_fetch_array($resultMYSQLI_ASSOC)){}
30.          mysqli_free_result($result);
31.          array_pop($rows);
225.       *
226.       * @param sql 字符串,需要进行查找的SQL语句
227.       */
228.      public function findSql($sql)
229.      {
230.          return $this->_db->getArray($sql);
231.      }
232. 
233.      /**
234.       执行SQL语句,相等于执行新增,修改,删除等操作。
235.       *
674.                  $cache_id .= md5(json_encode($func_args[0]));
675.              }
676.              $cache_id .= md5(json_encode($func_args));
677.          }
678.          if( $cache_file spAccess('r'"sp_cache_{$cache_id}") )return unserialize$cache_file );
679.          return $this->cache_obj($cache_idcall_user_func_array(array($this->model_obj$func_name), $func_args), $this->input_args[0]);
680.      }
681.      /** 
682.       执行spModel子类对象的方法,并对返回结果进行缓存。
683.       *
684.       * @param obj    引用的spModel子类对象
84.          $data['tag'] = spClass('m_original_tags')->spCache()->findAll("title in ({$tags})");
85.          $this->data $data;
86.          //商品数据
87.          if(!empty($data['goodsId'])){
88.              $sql "select * from com_goods where id in ({$data['goodsId']}) and status = 1";
89.              $goodsData spClass('m_goods')->spCache()->findSql($sql);
90.              $this->goodsData $goodsData;
91.          }
92.          //推荐数据
93.          $recommendData spClass('m_original')->spCache()->findAll("status=1 and recommend=1",'id desc','','4');
94.          $this->recommendData $recommendData;
29.          header('location: /main/notfound.html');exit();
30.          eval($GLOBALS['G_SP']["dispatcher_error"]);
31.          exit;
32.      }
33.      // 路由并执行用户代码
34.      $handle_controller->$__action();
35.      // 控制器程序运行完毕,进行模板的自动输出
36.      if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
37.          $__tplname $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
38.                  $__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼装模板路径
39.          $handle_controller->auto_display($__tplname);
1.  <?php
2.  require(SP_PATH."/SpeedPHP.php");
3.  spRun();
1.  <?php
2.  header('Access-Control-Allow-Origin:*');
3.  $spConfig = require(dirname(dirname(__DIR__)) . '/config/config-pc.php');
4.  require(BASE_PATH."/index.php");