GroupController.class.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. <?php
  2. /**
  3. * lionfish 商城系统
  4. *
  5. * ==========================================================================
  6. * @link http://www.liofis.com/
  7. * @copyright Copyright (c) 2015 liofis.com.
  8. * @license http://www.liofis.com/license.html License
  9. * ==========================================================================
  10. * 拼团模块
  11. * @author fish
  12. *
  13. */
  14. namespace Home\Controller;
  15. class GroupController extends CommonController {
  16. protected function _initialize()
  17. {
  18. parent::_initialize();
  19. }
  20. public function pintuan_slides()
  21. {
  22. $_GPC = I('request.');
  23. // 活动商品展示方式 pintuan_show_type 0横向布局 1左右布局
  24. $pintuan_show_type_info= D('Home/Front')->get_config_by_name('pintuan_show_type');
  25. if( empty($pintuan_show_type_info) )
  26. {
  27. $pintuan_show_type_info = 0;
  28. }
  29. //拼团页面浮窗 hide_pintuan_page_windows 0开启 1关闭
  30. $hide_pintuan_page_windows_info= D('Home/Front')->get_config_by_name('hide_pintuan_page_windows' );
  31. if( empty($hide_pintuan_page_windows_info) )
  32. {
  33. $hide_pintuan_page_windows_info = 0;
  34. }
  35. //拼团规则介绍 pintuan_publish
  36. $pintuan_publish_info= D('Home/Front')->get_config_by_name('pintuan_publish');
  37. $category_list = D('Home/GoodsCategory')->get_all_goods_category('pintuan');
  38. $params = array();
  39. $params[':uniacid'] = $uniacid;
  40. $params[':type'] = 'pintuan';
  41. $params[':enabled'] = 1;
  42. //拼团幻灯片
  43. $slider_list = M()->query('SELECT * FROM ' . C('DB_PREFIX'). "lionfish_comshop_adv
  44. WHERE type='pintuan' and enabled=1 " . ' order by displayorder desc, id desc ');
  45. if(!empty($slider_list))
  46. {
  47. foreach($slider_list as $key => $val)
  48. {
  49. $val['image'] = tomedia($val['thumb']);
  50. $slider_list[$key] = $val;
  51. }
  52. }else{
  53. $slider_list = array();
  54. }
  55. //tabbar开关
  56. //$open_tabbar_out_weapp = D('Home/Front')->get_config_by_name('open_tabbar_out_weapp');
  57. //$tabbar_out_type = D('Home/Front')->get_config_by_name('tabbar_out_type');
  58. //分享信息
  59. $pintuan_index_share_title = D('Home/Front')->get_config_by_name('pintuan_index_share_title');
  60. $pintuan_index_share_img = D('Home/Front')->get_config_by_name('pintuan_index_share_img');
  61. if(!empty($pintuan_index_share_img)){
  62. $pintuan_index_share_img = tomedia($pintuan_index_share_img);
  63. }
  64. //拼团返利规则
  65. $pintuan_rebate_publish = D('Home/Front')->get_config_by_name('pintuan_rebate_publish');
  66. echo json_encode(
  67. array(
  68. 'code'=>0,
  69. 'pintuan_show_type' => $pintuan_show_type_info,
  70. 'category_list' => $category_list,
  71. 'hide_pintuan_page_windows' => $hide_pintuan_page_windows_info,
  72. 'pintuan_publish' => htmlspecialchars_decode($pintuan_publish_info),
  73. 'pintuan_rebate_publish' => htmlspecialchars_decode($pintuan_rebate_publish),
  74. 'slider_list' => $slider_list,
  75. // 'open_tabbar_out_weapp' => $open_tabbar_out_weapp,
  76. // 'tabbar_out_type' => $tabbar_out_type,
  77. 'pintuan_index_share_title' => $pintuan_index_share_title,
  78. 'pintuan_index_share_img' => $pintuan_index_share_img
  79. )
  80. );
  81. die();
  82. }
  83. //拼团商品首页
  84. public function get_pintuan_list()
  85. {
  86. $_GPC = I('request.');
  87. $head_id = $_GPC['head_id'];
  88. if($head_id == 'undefined') $head_id = '';
  89. $pintuan_model_buy = D('Home/Front')->get_config_by_name('pintuan_model_buy');
  90. if( empty($pintuan_model_buy) || $pintuan_model_buy ==0 )
  91. {
  92. $pintuan_model_buy = 0;
  93. $head_id = '';
  94. }
  95. $pageNum = isset($_GPC['pageNum']) ? intval($_GPC['pageNum']) : 1;
  96. $gid = $_GPC['gid'];
  97. $keyword = $_GPC['keyword'];
  98. $is_random = isset($_GPC['is_random']) ? $_GPC['is_random'] : 0;
  99. $is_index = isset($_GPC['is_index']) ? $_GPC['is_index'] : 0;
  100. $per_page = isset($_GPC['per_page']) ? $_GPC['per_page'] : 10;
  101. if($gid == 'undefined' || $gid =='' || $gid =='null' || $gid ==0)
  102. {
  103. $gid = 0;
  104. }
  105. if( !empty($gid) && $gid > 0)
  106. {
  107. $gids = D('Home/GoodsCategory')->get_index_goods_category($gid,'pintuan','','',1);
  108. $gidArr = array();
  109. $gidArr[] = $gid;
  110. foreach ($gids as $key => $val) {
  111. $gidArr[] = $val['id'];
  112. }
  113. $gid = implode(',', $gidArr);
  114. }
  115. $offset = ($pageNum - 1) * $per_page;
  116. $limit = "{$offset},{$per_page}";
  117. $token = $_GPC['token'];
  118. $weprogram_token = M('lionfish_comshop_weprogram_token')->field('member_id')->where( array('token' => $token ) )->find();
  119. if( empty($weprogram_token) || empty($weprogram_token['member_id']) )
  120. {
  121. }else{
  122. $member_id = $weprogram_token['member_id'];
  123. }
  124. $now_time = time();
  125. $where = " g.grounding =1 and g.type ='pin' ";
  126. if( isset($is_index) && $is_index == 1 )
  127. {
  128. $where .= " and g.is_index_show = 1 ";
  129. $per_page = 20;
  130. }
  131. if( !empty($head_id) && $head_id >0 )
  132. {
  133. $params = array();
  134. $params['uniacid'] = $_W['uniacid'];
  135. $params['head_id'] = $head_id;
  136. if($gid == 0){
  137. $goods_ids_arr = M()->query('SELECT goods_id FROM ' .C('DB_PREFIX'). "lionfish_community_head_goods
  138. WHERE head_id={$head_id} order by id desc ");
  139. } else {
  140. $sql_goods_ids = "select pg.goods_id from ".C('DB_PREFIX')."lionfish_community_head_goods as pg, "
  141. .C('DB_PREFIX')."lionfish_comshop_goods_to_category as g
  142. where pg.goods_id = g.goods_id and g.cate_id in ({$gid}) and pg.head_id = {$head_id} order by pg.id desc ";
  143. $goods_ids_arr = M()->query($sql_goods_ids);
  144. }
  145. $ids_arr = array();
  146. foreach($goods_ids_arr as $val){
  147. $ids_arr[] = $val['goods_id'];
  148. }
  149. if(!empty($keyword)) {
  150. $goods_ids_nolimit_arr = M()->query('SELECT id FROM ' . C('DB_PREFIX') . "lionfish_comshop_goods
  151. WHERE is_all_sale=1 and goodsname like '%{$keyword}%' " );
  152. } else {
  153. if($gid == 0){
  154. $goods_ids_nolimit_arr = M()->query('SELECT id FROM ' . C('DB_PREFIX'). "lionfish_comshop_goods
  155. WHERE is_all_sale=1 " );
  156. } else {
  157. $goods_ids_nolimit_sql = "select pg.id from ".C('DB_PREFIX')."lionfish_comshop_goods as pg,"
  158. .C('DB_PREFIX')."lionfish_comshop_goods_to_category as g
  159. where pg.id = g.goods_id and g.cate_id in ({$gid}) and pg.is_all_sale=1 ";
  160. $goods_ids_nolimit_arr = M()->query($goods_ids_nolimit_sql);
  161. }
  162. }
  163. if( !empty($goods_ids_nolimit_arr) )
  164. {
  165. foreach($goods_ids_nolimit_arr as $val){
  166. $ids_arr[] = $val['id'];
  167. }
  168. }
  169. $ids_str = implode(',',$ids_arr);
  170. if( !empty($ids_str) )
  171. {
  172. $where .= " and g.id in ({$ids_str})";
  173. } else{
  174. $where .= " and 0 ";
  175. }
  176. }else{
  177. if($gid > 0){
  178. $goods_ids_nohead_sql = "select pg.id from ".C('DB_PREFIX')."lionfish_comshop_goods as pg,"
  179. .C('DB_PREFIX')."lionfish_comshop_goods_to_category as g where pg.id = g.goods_id and g.cate_id in ({$gid}) ";
  180. $goods_ids_nohead_arr = M()->query($goods_ids_nohead_sql);
  181. }
  182. $ids_arr = array();
  183. if( !empty($goods_ids_nohead_arr) )
  184. {
  185. foreach($goods_ids_nohead_arr as $val){
  186. $ids_arr[] = $val['id'];
  187. }
  188. }
  189. $ids_str = implode(',',$ids_arr);
  190. if( !empty($ids_str) )
  191. {
  192. $where .= " and g.id in ({$ids_str})";
  193. } else if($gid!=0){
  194. echo json_encode( array('code' => 1) );
  195. die();
  196. }
  197. }
  198. $where .= " and gc.begin_time <={$now_time} and gc.end_time > {$now_time} ";
  199. $where .= " and gc.is_new_buy=0 and gc.is_spike_buy = 0 ";
  200. if($is_random == 1)
  201. {
  202. $community_goods = D('Home/Pingoods')->get_new_community_index_goods($head_id,$gid,'g.*,gc.begin_time,gc.end_time,gc.big_img,gc.is_take_fullreduction,gc.labelname,gc.video ', $where,$offset,$per_page,' rand() ');
  203. }else{
  204. $community_goods = D('Home/Pingoods')->get_new_community_index_goods($head_id,$gid,'g.*,gc.begin_time,gc.end_time,gc.big_img,gc.is_take_fullreduction,gc.labelname,gc.video ', $where,$offset,$per_page);
  205. }
  206. if( !empty($community_goods) )
  207. {
  208. $is_open_fullreduction = D('Home/Front')->get_config_by_name('is_open_fullreduction');
  209. $full_money = D('Home/Front')->get_config_by_name('full_money');
  210. $full_reducemoney = D('Home/Front')->get_config_by_name('full_reducemoney');
  211. $is_open_fullreduction = 0;
  212. $cart= D('Home/Car');
  213. $list = array();
  214. $copy_text_arr = array();
  215. foreach($community_goods as $val)
  216. {
  217. $tmp_data = array();
  218. $tmp_data['actId'] = $val['id'];
  219. $tmp_data['spuName'] = $val['goodsname'];
  220. $tmp_data['spuCanBuyNum'] = $val['total'];
  221. $tmp_data['spuDescribe'] = $val['subtitle'];
  222. $tmp_data['end_time'] = $val['end_time'];
  223. $tmp_data['soldNum'] = $val['seller_count'] + $val['sales'];
  224. $productprice = $val['productprice'];
  225. $tmp_data['marketPrice'] = explode('.', $productprice);
  226. if( !empty($val['big_img']) )
  227. {
  228. $tmp_data['bigImg'] = tomedia($val['big_img']);
  229. }
  230. $good_image = D('Home/Pingoods')->get_goods_images($val['id']);
  231. if( !empty($good_image) )
  232. {
  233. $tmp_data['skuImage'] = tomedia($good_image['image']);
  234. }
  235. $price_arr = D('Home/Pingoods')->get_goods_price($val['id'], $member_id);
  236. $price = $price_arr['price'];
  237. if( $pageNum == 1 )
  238. {
  239. $copy_text_arr[] = array('goods_name' => $val['goodsname'], 'price' => $price);
  240. }
  241. $tmp_data['actPrice'] = explode('.', $price);
  242. $tmp_data['danPrice'] = $price_arr['danprice'];
  243. $tmp_data['skuList']= D('Home/Pingoods')->get_goods_options($val['id'],$member_id);
  244. if( !empty($tmp_data['skuList']) )
  245. {
  246. $tmp_data['car_count'] = 0;
  247. }else{
  248. $car_count = 0;
  249. if( empty($car_count) )
  250. {
  251. $tmp_data['car_count'] = 0;
  252. }else{
  253. $tmp_data['car_count'] = $car_count;
  254. }
  255. }
  256. if($is_open_fullreduction == 0)
  257. {
  258. $tmp_data['is_take_fullreduction'] = 0;
  259. }else if($is_open_fullreduction == 1){
  260. $tmp_data['is_take_fullreduction'] = $val['is_take_fullreduction'];
  261. }
  262. // 商品角标
  263. $label_id = unserialize($val['labelname']);
  264. if($label_id){
  265. $label_info = D('Home/Pingoods')->get_goods_tags($label_id);
  266. if($label_info){
  267. if($label_info['type'] == 1){
  268. $label_info['tagcontent'] = tomedia($label_info['tagcontent']);
  269. } else {
  270. $label_info['len'] = mb_strlen($label_info['tagcontent'], 'utf-8');
  271. }
  272. }
  273. $tmp_data['label_info'] = $label_info;
  274. }
  275. $tmp_data['is_video'] = empty($val['video']) ? false : true;
  276. //根据商品信息查询拼团信息 $val['id'];
  277. $good_pin_list = M('lionfish_comshop_good_pin')->where( array('goods_id' => $val['id'] ) )->find();
  278. //拼团价格
  279. //$tmp_data['pinprice'] = $price ;
  280. //拼团人数
  281. $tmp_data['pin_count'] =$good_pin_list['pin_count'];
  282. //拼团时间
  283. $tmp_data['pin_hour'] =$good_pin_list['pin_hour'];
  284. //拼团开始时间
  285. $tmp_data['pin_begin_time'] =$good_pin_list['begin_time'];
  286. //拼团结束时间
  287. $tmp_data['pin_end_time'] =$good_pin_list['end_time'];
  288. $list[] = $tmp_data;
  289. }
  290. $is_show_list_timer = D('Home/Front')->get_config_by_name('is_show_list_timer');
  291. $pintuan_index_coming_img = D('Home/Front')->get_config_by_name('pintuan_index_coming_img');
  292. $pintuan_index_show = D('Home/Front')->get_config_by_name('pintuan_index_show');
  293. if( !isset($pintuan_index_show) )
  294. {
  295. $pintuan_index_show = 0;
  296. }
  297. $pintuan_index_show_listtop = D('Home/Front')->get_config_by_name('pintuan_index_show_listtop');
  298. if( !isset($pintuan_index_show_listtop) )
  299. {
  300. $pintuan_index_show_listtop = 0;
  301. }
  302. if( isset($pintuan_index_coming_img) && !empty($pintuan_index_coming_img) )
  303. {
  304. $pintuan_index_coming_img = tomedia($pintuan_index_coming_img);
  305. }
  306. $pintuan_show_type = D('Home/Front')->get_config_by_name('pintuan_show_type');
  307. //pintuan_index_coming_img
  308. echo json_encode(array('code' => 0,'pintuan_model_buy' => $pintuan_model_buy,'pintuan_index_show' => $pintuan_index_show,'pintuan_index_coming_img' => $pintuan_index_coming_img, 'list' => $list ,'copy_text_arr' => $copy_text_arr, 'cur_time' => time() ,'full_reducemoney' => $full_reducemoney,'full_money' => $full_money,'is_open_fullreduction' => $is_open_fullreduction,'is_show_list_timer'=>$is_show_list_timer , 'pintuan_index_show_listtop'=>$pintuan_index_show_listtop, 'pintuan_show_type'=>$pintuan_show_type ));
  309. die();
  310. }else{
  311. echo json_encode( array('code' => 1) );
  312. die();
  313. }
  314. }
  315. //猜你喜欢
  316. public function pintuan_like_list()
  317. {
  318. $_GPC = I('request.');
  319. //猜你喜欢开关
  320. $is_show_order_guess_like= D('Home/Front')->get_config_by_name('is_open_pipntuan_like' );
  321. if( empty($is_show_order_guess_like) )
  322. {
  323. $is_show_order_guess_like = 0;
  324. }
  325. $community_id = $_GPC['community_id'];
  326. //community_id
  327. //购买的商品id
  328. $order_list = M('lionfish_comshop_order_goods')->field('goods_id')->where( array('order_id' =>$_GPC["order_id"] ) )->find();
  329. $now_time = time();
  330. $pintuan_model_buy = D('Home/Front')->get_config_by_name('pintuan_model_buy');
  331. if( empty($pintuan_model_buy) )
  332. {
  333. $pintuan_model_buy = 1;
  334. }
  335. if(!empty($community_id) && $pintuan_model_buy == 1){
  336. //有社区
  337. $head_info = M('lionfish_community_head')->field('id')->where( array('id' => $community_id ) )->find();
  338. //团长商品和全部可售
  339. //lionfish_community_head_goods
  340. $head_goods = M('lionfish_community_head_goods')->field('goods_id')->where( array('head_id' => $head_info['id'] ) )->select();
  341. foreach ($head_goods as $hg) {
  342. $hg = join(",",$hg);
  343. $temp_array[] = $hg;
  344. }
  345. $all_goods = M('lionfish_comshop_goods')->field('id')->where( array('type' => 'pin', 'is_all_sale' => 1) )->select();
  346. if( !empty($all_goods) )
  347. {
  348. foreach( $all_goods as $vv )
  349. {
  350. $temp_array[] = $vv['id'];
  351. }
  352. }
  353. //团长商品id
  354. $goods_id_list = implode(",", $temp_array);
  355. $sql_likegoods = "select g.*,gc.end_time,gc.begin_time from ".C('DB_PREFIX')."lionfish_comshop_goods as g,".C('DB_PREFIX')."lionfish_comshop_good_common as gc
  356. where g.id = gc.goods_id and gc.begin_time <={$now_time} and gc.end_time > {$now_time} and g.grounding =1 and ( g.id in (".$goods_id_list.") and g.id <> ".$order_list['goods_id']." ) and g.type = 'pin' order by rand() limit 6";
  357. }else{
  358. //猜你喜欢 随机6条数据
  359. $sql_likegoods = "select g.*,gc.end_time,gc.begin_time from ".C('DB_PREFIX')."lionfish_comshop_goods as g,".C('DB_PREFIX')."lionfish_comshop_good_common as gc
  360. where gc.begin_time <={$now_time} and gc.end_time > {$now_time} and g.id=gc.goods_id and g.id <> ".$order_list['goods_id']." and g.grounding =1 and g.type = 'pin' order by rand() limit 6";
  361. }
  362. $likegoods_list = M()->query($sql_likegoods);
  363. $list = array();
  364. if( !empty($likegoods_list) )
  365. {
  366. foreach($likegoods_list as $val)
  367. {
  368. $tmp_data = array();
  369. $tmp_data['actId'] = $val['id'];
  370. $goodsname = htmlspecialchars_decode($val['goodsname']);
  371. $tmp_data['spuName'] = $goodsname;
  372. $tmp_data['spuCanBuyNum'] = $val['total'];
  373. $tmp_data['spuDescribe'] = $val['subtitle'];
  374. $tmp_data['end_time'] = $val['end_time'];
  375. $tmp_data['soldNum'] = $val['seller_count'] + $val['sales'];
  376. $productprice = $val['productprice'];
  377. $tmp_data['marketPrice'] = explode('.', $productprice);
  378. if( !empty($val['big_img']) )
  379. {
  380. $tmp_data['bigImg'] = tomedia($val['big_img']);
  381. }
  382. $good_image = D('Home/Pingoods')->get_goods_images($val['id']);
  383. if( !empty($good_image) )
  384. {
  385. $tmp_data['skuImage'] = tomedia($good_image['image']);
  386. }
  387. $price_arr = D('Home/Pingoods')->get_goods_price($val['id'], $member_id);
  388. $price = $price_arr['price'];
  389. if( $pageNum == 1 )
  390. {
  391. $copy_text_arr[] = array('goods_name' => $val['goodsname'], 'price' => $price);
  392. }
  393. $tmp_data['actPrice'] = explode('.', $price);
  394. $tmp_data['danPrice'] = $price_arr['danprice'];
  395. $tmp_data['skuList']= D('Home/Pingoods')->get_goods_options($val['id'],$member_id);
  396. if( !empty($tmp_data['skuList']) )
  397. {
  398. $tmp_data['car_count'] = 0;
  399. }else{
  400. $car_count = 0;
  401. if( empty($car_count) )
  402. {
  403. $tmp_data['car_count'] = 0;
  404. }else{
  405. $tmp_data['car_count'] = $car_count;
  406. }
  407. }
  408. if($is_open_fullreduction == 0)
  409. {
  410. $tmp_data['is_take_fullreduction'] = 0;
  411. }else if($is_open_fullreduction == 1){
  412. $tmp_data['is_take_fullreduction'] = $val['is_take_fullreduction'];
  413. }
  414. // 商品角标
  415. $label_id = unserialize($val['labelname']);
  416. if($label_id){
  417. $label_info = D('Home/Pingoods')->get_goods_tags($label_id);
  418. if($label_info){
  419. if($label_info['type'] == 1){
  420. $label_info['tagcontent'] = tomedia($label_info['tagcontent']);
  421. } else {
  422. $label_info['len'] = mb_strlen($label_info['tagcontent'], 'utf-8');
  423. }
  424. }
  425. $tmp_data['label_info'] = $label_info;
  426. }
  427. $tmp_data['is_video'] = empty($val['video']) ? false : true;
  428. //根据商品信息查询拼团信息
  429. $good_pin_list = M('lionfish_comshop_good_pin')->where( array('goods_id' => $val['id'] ) )->find();
  430. //拼团价格
  431. //拼团人数
  432. $tmp_data['pin_count'] =$good_pin_list['pin_count'];
  433. //拼团时间
  434. $tmp_data['pin_hour'] =$good_pin_list['pin_hour'];
  435. //拼团开始时间
  436. $tmp_data['pin_begin_time'] =$good_pin_list['begin_time'];
  437. //拼团结束时间
  438. $tmp_data['pin_end_time'] =$good_pin_list['end_time'];
  439. $list[] = $tmp_data;
  440. }
  441. }
  442. echo json_encode(array('code'=>0,
  443. 'is_show_order_guess_like' => $is_show_order_guess_like,
  444. 'list' => $list,
  445. )
  446. );
  447. die();
  448. }
  449. /**
  450. public function test(){
  451. $pin_id = 688;
  452. //拼团信息
  453. $pin_info = M('lionfish_comshop_pin')->where( array('pin_id' => $pin_id ) )->find();
  454. $pin_order_sql = "select po.order_id,og.order_goods_id,m.openid,m.we_openid,m.member_id,o.type,o.head_id,o.from_type,o.order_num_alias,o.delivery,og.name,og.price,og.store_id
  455. from ".C('DB_PREFIX'). "lionfish_comshop_pin_order as po,".C('DB_PREFIX'). "lionfish_comshop_order as o,
  456. ".C('DB_PREFIX'). "lionfish_comshop_order_goods as og,".C('DB_PREFIX'). "lionfish_comshop_member as m
  457. where po.pin_id = ".$pin_id." and og.order_id = po.order_id and o.order_id = po.order_id and o.member_id= m.member_id order by po.add_time asc ";
  458. $pin_order_arr = M()->query($pin_order_sql);
  459. //拼团返利订单设置是否发货
  460. $pin_order_arr = D('Home/Pin')->setPintuanRebateOrderSuccess($pin_info, $pin_order_arr);
  461. print_r($pin_order_arr);
  462. }**/
  463. }