浏览代码

gift debug

zz 6 年之前
父节点
当前提交
5aee8d2ba8
共有 1 个文件被更改,包括 5 次插入2 次删除
  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){}
 
     }