/** * 插入数据方法 * @param $good_id * @param $good_name * @param $mall_id * @param $category_id * @param $good_price * @param $good_bar_price * @param $good_url * @param $good_image */ function insert_data($good_id, $good_name, $mall_id, $category_id, $good_price, $good_bar_price, $good_url, $good_image) { echo 'insert1'; $g = new Goods(); $g->test(); // $goods->insertGoods($good_id,$good_name,$mall_id,$category_id,$good_price,$good_bar_price,$good_url,$good_image); echo 'insert2'; }