正在显示
1 个修改的文件
包含
5 行增加
和
4 行删除
@@ -330,10 +330,11 @@ class Client extends Base | @@ -330,10 +330,11 @@ class Client extends Base | ||
330 | $w['verification_store_id'] = $param['store_id']; | 330 | $w['verification_store_id'] = $param['store_id']; |
331 | $w['coupon_type'] = 1; | 331 | $w['coupon_type'] = 1; |
332 | $w['type'] = $param['type']; | 332 | $w['type'] = $param['type']; |
333 | - $data = Db::name('verification_receive')->where($w)->paginate(10); | ||
334 | - foreach($data as $k=>&$v){ | ||
335 | - $v['qr_code'] = !empty($v['qr_code'])?request()->domain().$v['qr_code']:''; | ||
336 | - } | 333 | + $data = Db::name('verification_receive')->where($w)->paginate(10)->each(function($item){ |
334 | + $item['qr_code'] = !empty($item['qr_code'])?request()->domain().$item['qr_code']:''; | ||
335 | + return $item; | ||
336 | + }); | ||
337 | + | ||
337 | return $this->success('',$data); | 338 | return $this->success('',$data); |
338 | } | 339 | } |
339 | 340 |
-
请 注册 或 登录 后发表评论