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