作者 lihan
1 个管道 的构建 通过 耗费 1 秒

项目细节完善

@@ -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();