正在显示
1 个修改的文件
包含
20 行增加
和
4 行删除
| @@ -210,10 +210,26 @@ class Business extends Base | @@ -210,10 +210,26 @@ class Business extends Base | ||
| 210 | ->field('a.id,a.name,a.phone,a.type,a.status,c.image,a.order_no,c.title,b.address,b.lng,b.lat,a.price,a.payMode,DATE_FORMAT(FROM_UNIXTIME(a.paytime), "%Y-%m-%d %H:%i:%S") AS paytime') | 210 | ->field('a.id,a.name,a.phone,a.type,a.status,c.image,a.order_no,c.title,b.address,b.lng,b.lat,a.price,a.payMode,DATE_FORMAT(FROM_UNIXTIME(a.paytime), "%Y-%m-%d %H:%i:%S") AS paytime') |
| 211 | ->find(); | 211 | ->find(); |
| 212 | //查询具体卡卷 | 212 | //查询具体卡卷 |
| 213 | - $receivewhere['verification_order_id']=['=',$order['id']]; | ||
| 214 | - $receive=Db::name("verification_receive")->where($receivewhere)->select(); | ||
| 215 | - $order['receive']=$receive; | ||
| 216 | - $this->success('查询成功',$order); | 213 | + if($order){ |
| 214 | + $receivewhere['verification_order_id']=$id; | ||
| 215 | + | ||
| 216 | + $receive=Db::name('verification_receive') | ||
| 217 | + ->alias('a') | ||
| 218 | + ->join('verification_coupon b','a.verification_coupon_id=b.id') | ||
| 219 | + ->field("a.id,b.name,b.type,b.voucher_amount,b.gift,b.consumption,b.reduction,b.consumption_name,b.image,DATE_FORMAT(FROM_UNIXTIME(b.closetime), '%Y-%m-%d %H:%i:%S') AS closetime") | ||
| 220 | + ->where($receivewhere)->select(); | ||
| 221 | + $order['receive']=$receive; | ||
| 222 | + | ||
| 223 | + | ||
| 224 | + foreach ($order['receive'] as $key => $value) { | ||
| 225 | + if($order['receive'][$key]['image']){ | ||
| 226 | + $order['receive'][$key]['image']=$this->url_h5.$order['receive'][$key]['image']; | ||
| 227 | + } | ||
| 228 | + } | ||
| 229 | + $this->success("查询成功",$order); | ||
| 230 | + }else{ | ||
| 231 | + $this->error("查询失败"); | ||
| 232 | + } | ||
| 217 | } | 233 | } |
| 218 | 234 | ||
| 219 | /** | 235 | /** |
-
请 注册 或 登录 后发表评论