one_after 3 місяців тому
батько
коміт
6e00cbf08f

+ 2 - 0
app/business/PayorderBusiness.php

@@ -461,6 +461,8 @@ class PayorderBusiness
 
             }elseif ($goodsData->type == 16) {
 
+            }elseif ($goodsData->type == 17) {
+
             }
             if (!empty($user->pid) && !empty($system->rebate)) {
                 StreamBusiness::addStream($user->pid, bcmul($data['money'], bcdiv($system->rebate, 100, 2), 2), streamType10, moldType3, moldTypefild3, $data['id']);

+ 7 - 0
app/controller/UserController.php

@@ -140,6 +140,12 @@ class UserController
             ->where('goods_type', 16)
             ->exists();
 
+        $is_buy_equanqdj = Db::table('wa_payorder')
+            ->where('user_id', $request->user_data['id'])
+            ->where('is_pay', 2)
+            ->where('goods_type', 17)
+            ->exists();
+
         $buy_sign['has']        = 1;
         $buy_sign['goods_data'] = [];
 
@@ -213,6 +219,7 @@ class UserController
             'is_buy_voucher'        => $is_buy_voucher ? true : false,
             'is_buy_cardactivation' => $is_buy_cardactivation ? true : false,
             'is_buy_enable'         => $is_buy_enable ? true : false,
+            'is_buy_equanqdj'       => $is_buy_equanqdj ? true : false,
             'is_buy_sign'           => $buy_sign,
             'total_sign'            => $total_sign,
             'dynamic_pass'          => $dynamic_pass,