|
@@ -327,22 +327,26 @@ class MonthOrderController extends Controller
|
|
|
$type = 'MONTH';
|
|
|
$fee = 0;
|
|
|
$day = 0;
|
|
|
+ $body = '';
|
|
|
if($plan_id == env('MONTH_ORDER_PLAN_ID')){
|
|
|
$fee = 3000;
|
|
|
$type = 'MONTH';
|
|
|
$day = 30;
|
|
|
+ $body = '追书云包月扣款';
|
|
|
}
|
|
|
|
|
|
if($plan_id == env('MONTH_WEEK_ORDER_PLAN_ID')){
|
|
|
$fee = 700;
|
|
|
$type = 'WEEK';
|
|
|
$day = 7;
|
|
|
+ $body = '追书云包周扣款';
|
|
|
}
|
|
|
|
|
|
if($plan_id == env('MONTH_QUARTER_ORDER_PLAN_ID')){
|
|
|
$fee = 9800;
|
|
|
$type = 'QUARTER';
|
|
|
$day = 92;
|
|
|
+ $body = '追书云包季扣款';
|
|
|
}
|
|
|
|
|
|
$user_id = $xml['contract_code'];
|
|
@@ -374,8 +378,8 @@ class MonthOrderController extends Controller
|
|
|
if($change_type == 'ADD'){
|
|
|
//获取上次扣费时间
|
|
|
$info = UserMonthService::getLastMonthOrderInfo($user_id,$type);
|
|
|
- if($info->isEmpty() || time() >= (strtotime($info->created_at)+$day*86400) ){
|
|
|
- UserMonthService::monthPayApplypap($user_id,$xml['contract_id'],$fee,'追书云包季扣款','47.97.95.151','sign_back',\GuzzleHttp\json_encode(['uid'=>$user_id,'plan_id'=>$plan_id]));
|
|
|
+ if(!$info || time() >= (strtotime($info->created_at)+$day*86400) ){
|
|
|
+ UserMonthService::monthPayApplypap($user_id,$xml['contract_id'],$fee,$body,'47.97.95.151','sign_back',\GuzzleHttp\json_encode(['uid'=>$user_id,'plan_id'=>$plan_id]));
|
|
|
}
|
|
|
}
|
|
|
Log::info('signCallBack-------------------end-----------------------signCallBack');
|