正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -488,9 +488,9 @@ class CenterController extends HomeBaseController | @@ -488,9 +488,9 @@ class CenterController extends HomeBaseController | ||
488 | if (Db::name('order_info')->update(['id' => $oid, 'status' => 6])) { | 488 | if (Db::name('order_info')->update(['id' => $oid, 'status' => 6])) { |
489 | Db::commit(); | 489 | Db::commit(); |
490 | //如果全部5星好评赠送优惠券 | 490 | //如果全部5星好评赠送优惠券 |
491 | - | ||
492 | - | ||
493 | - | 491 | + if($data['rank_synthetical'] == 5 && $data['rank_service'] == 5 && $data['rank_journey'] == 5) { |
492 | + give_as_a_present(session('user.id'), '五星好评优惠券'); | ||
493 | + } | ||
494 | $this->success('评论成功', url('user/Center/orderDetail', ['oid' => $request->param('oid')]), true); | 494 | $this->success('评论成功', url('user/Center/orderDetail', ['oid' => $request->param('oid')]), true); |
495 | } else { | 495 | } else { |
496 | Db::rollback(); | 496 | Db::rollback(); |
-
请 注册 或 登录 后发表评论