mac 10 hours ago
parent
commit
130f1a774f
2 changed files with 28 additions and 0 deletions
  1. 6 0
      app/business/PayorderBusiness.php
  2. 22 0
      app/controller/UserController.php

+ 6 - 0
app/business/PayorderBusiness.php

@@ -803,6 +803,12 @@ class PayorderBusiness
 
             }elseif ($goodsData->type == 20) {
 
+            }elseif ($goodsData->type == 21) {
+
+            }elseif ($goodsData->type == 22) {
+
+            }elseif ($goodsData->type == 23) {
+
             }
 
             /** 新增消费数据 */

+ 22 - 0
app/controller/UserController.php

@@ -215,6 +215,25 @@ class UserController
             ->where('goods_type', 20)
             ->exists();
 
+
+        $is_buy_xinc_daoz = Db::table('wa_payorder')
+            ->where('user_id', $request->user_data['id'])
+            ->where('is_pay', 2)
+            ->where('goods_type', 21)
+            ->exists();
+
+        $is_buy_jinka_daoz = Db::table('wa_payorder')
+            ->where('user_id', $request->user_data['id'])
+            ->where('is_pay', 2)
+            ->where('goods_type', 22)
+            ->exists();
+
+        $is_buy_zongzc_daoz = Db::table('wa_payorder')
+            ->where('user_id', $request->user_data['id'])
+            ->where('is_pay', 2)
+            ->where('goods_type', 23)
+            ->exists();
+
         $arr       = [
             'img'                        => !empty($request->user_data['img']) ? imageToBase64($request->user_data['img']) : '',
             'uuid'                       => $request->user_data['uuid'],
@@ -278,6 +297,9 @@ class UserController
             'is_buy_xinchunhbsp'         => $is_buy_xinchunhbsp ? true : false,
             'is_buy_jinkashsp'           => $is_buy_jinkashsp ? true : false,
             'is_buy_zongzicsp'           => $is_buy_zongzicsp ? true : false,
+            'is_buy_xinc_daoz'           => $is_buy_xinc_daoz ? true : false,
+            'is_buy_jinka_daoz'          => $is_buy_jinka_daoz ? true : false,
+            'is_buy_zongzc_daoz'         => $is_buy_zongzc_daoz ? true : false,
             'total_sign'                 => $total_sign,
             'equity_value'               => $system->equity_value,
             'coin_value'                 => $system->coin_value,