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