|
@@ -289,11 +289,17 @@ class JuliangAccountReportChargeService
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取订单的染色信息,回传配置信息
|
|
|
+ * 获取订单的染色信息,回传配置信息, 推广被禁用,就按照没有回传配置处理
|
|
|
*/
|
|
|
private function fillRanseInfo() {
|
|
|
$ranseId = $this->order->promotion_id;
|
|
|
$this->promotion = DB::table('promotions')->where('id', $ranseId)->first();
|
|
|
+ if(0 == $this->promotion->status) {
|
|
|
+ $this->result['need_report'] = false;
|
|
|
+ $this->result['info_type'] = 'no_callback_config';
|
|
|
+ $this->result['info_str'] = '没有回传配置';
|
|
|
+ return;
|
|
|
+ }
|
|
|
$this->callbackConfig = DB::table('juliang_account_callback_config')
|
|
|
->where(['id' => $this->promotion->callback_config_id])
|
|
|
->first();
|