| xqd
@@ -880,9 +880,6 @@ public function doPageMyOrder(){
|
|
|
global $_GPC, $_W;
|
|
|
$pageindex = max(1, intval($_GPC['page']));
|
|
|
$pagesize=10;
|
|
|
- if (!$_GPC['seller_id']) {
|
|
|
- echo '酒店id必填!';
|
|
|
- }
|
|
|
$data[':uniacid']=$_W['uniacid'];
|
|
|
$data[':user_id']=$_GPC['user_id'];
|
|
|
$where=" where uniacid=:uniacid and user_id=:user_id ";
|
| xqd
@@ -896,9 +893,11 @@ public function doPageMyOrder(){
|
|
|
$list=pdo_fetchall($select_sql,$data);
|
|
|
foreach($list as $key=>$val){
|
|
|
$list[$key]['count']=pdo_fetchcolumn("SELECT count(*) FROM ".tablename('zh_jdgjb_order') .$where.' and id<='.$val['id'].' and user_id='.$val['user_id'] ,$data)?:0;
|
|
|
+ $conf = pdo_get('zh_jdgjb_seller',array('id'=>$val['seller_id']));
|
|
|
+ $list[$key]['re_pay_money'] = $conf['re_pay_money'];
|
|
|
}
|
|
|
- $list = pdo_get('zh_jdgjb_seller',array('id'=>$_GPC['seller_id']));
|
|
|
- echo json_encode(['data' => $list, 're_pay_money' => $list['re_pay_money']]);
|
|
|
+
|
|
|
+ echo json_encode($list);
|
|
|
}
|
|
|
|
|
|
//订单详情
|