|
@@ -11,6 +11,7 @@ use App\Modules\Statistic\Services\AdVisitStatService;
|
|
use App\Modules\Statistic\Services\DataAnalysisChapterService;
|
|
use App\Modules\Statistic\Services\DataAnalysisChapterService;
|
|
use App\Modules\Statistic\Services\DataAnalysisSelectUserService;
|
|
use App\Modules\Statistic\Services\DataAnalysisSelectUserService;
|
|
use App\Modules\Statistic\Services\WapVisitStatService;
|
|
use App\Modules\Statistic\Services\WapVisitStatService;
|
|
|
|
+use App\Modules\Subscribe\Services\CrmChapterOrderDetailService;
|
|
use App\Modules\Subscribe\Services\CustomChapterOrderService;
|
|
use App\Modules\Subscribe\Services\CustomChapterOrderService;
|
|
use App\Modules\Subscribe\Services\OrderService;
|
|
use App\Modules\Subscribe\Services\OrderService;
|
|
use App\Modules\Subscribe\Models\Order;
|
|
use App\Modules\Subscribe\Models\Order;
|
|
@@ -747,6 +748,7 @@ class ChapterController extends BaseController
|
|
$this->user->balance -= $fee;
|
|
$this->user->balance -= $fee;
|
|
}
|
|
}
|
|
$this->customChapterOrderStats($fee);
|
|
$this->customChapterOrderStats($fee);
|
|
|
|
+ $this->crmChapterStats($fee);
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1863,6 +1865,14 @@ class ChapterController extends BaseController
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private function crmChapterStats($fee){
|
|
|
|
+ $crm = Cookie::get('crm');
|
|
|
|
+ if(!$crm)return ;
|
|
|
|
+ try{
|
|
|
|
+ CrmChapterOrderDetailService::create($this->uid,$fee);
|
|
|
|
+ }catch (\Exception $e){}
|
|
|
|
+
|
|
|
|
+ }
|
|
private function customChapterOrderStats($fee)
|
|
private function customChapterOrderStats($fee)
|
|
{
|
|
{
|
|
//custom_290824
|
|
//custom_290824
|