Browse Source

gift debug

zz 6 years ago
parent
commit
5aee8d2ba8
1 changed files with 5 additions and 2 deletions
  1. 5 2
      app/Http/Controllers/Wap/Pay/OrdersController.php

+ 5 - 2
app/Http/Controllers/Wap/Pay/OrdersController.php

@@ -1714,10 +1714,13 @@ class OrdersController extends Controller
     private function userProperty($uid,$price,$charge_type){
         try{
             $userproperty = UserDivisionCpcPropertyService::getUserSubscribeAndChargeInfoByUid($uid);
-            if(!$userproperty) return ;
+            if(!$userproperty) {
+                $this->chargeGiveGift($uid,'low',$price,$charge_type);
+                return ;
+            }
             UserDivisionCpcPropertyService::createorUpdate($userproperty);
             //chargeGiveGift
-            $this->chargeGiveGift($uid,$userproperty,$price,$charge_type);
+            $this->chargeGiveGift($uid,$userproperty['property'],$price,$charge_type);
         }catch (\Exception $e){}
 
     }