|
@@ -939,6 +939,13 @@ class OrderController extends Controller {
|
939
|
939
|
//$v['receiverMobile'] = substr($v['receiverMobile'], 0, 3).'****'.substr($v['receiverMobile'], 7);
|
940
|
940
|
$order->status_name = $status_arr[$order->status];
|
941
|
941
|
|
|
942
|
+ //是否是会员
|
|
943
|
+ $order->is_vip = 0;
|
|
944
|
+ $time = date('Y-m-d H:i:s');
|
|
945
|
+ $customer_info = DB::table('customer_vip')->where('phone', $order->buyer_phone)->where('is_del', 0)->first();
|
|
946
|
+ if(!empty($customer_info) && $customer_info->vip_end_time > $time){
|
|
947
|
+ $order->is_vip = 1;
|
|
948
|
+ }
|
942
|
949
|
// 代金券
|
943
|
950
|
if($order->use_coupon == 1){
|
944
|
951
|
$order->coupon_id = DB::table('customer_coupons')->where('order_id', $id)->where('is_use', 1)->pluck('id');
|