...
|
...
|
@@ -488,9 +488,9 @@ class CenterController extends HomeBaseController |
|
|
if (Db::name('order_info')->update(['id' => $oid, 'status' => 6])) {
|
|
|
Db::commit();
|
|
|
//如果全部5星好评赠送优惠券
|
|
|
|
|
|
|
|
|
|
|
|
if($data['rank_synthetical'] == 5 && $data['rank_service'] == 5 && $data['rank_journey'] == 5) {
|
|
|
give_as_a_present(session('user.id'), '五星好评优惠券');
|
|
|
}
|
|
|
$this->success('评论成功', url('user/Center/orderDetail', ['oid' => $request->param('oid')]), true);
|
|
|
} else {
|
|
|
Db::rollback();
|
...
|
...
|
|