Recent research on ECSTORE found that the background report shows blank, Google found many unified methods, directly insert a few items into the table data. Haha, go deeper
1. To display the report function, you must first ensure that the scheduled task of contab has been configured and the scheduled task can be executed
2. The report task is executed by executing the analysis_day() and analysis_hour() methods in the ectools_analysis_task class of appectoolslibanalysistask.php
3. Check and find
in the analysis_day() methodforeach(kernel::serviceList('ectools_analyse_day') AS $service){ …… }
and in analysis_hour()
foreach(kernel::serviceList('ectools_analyse_hour') AS $service){ …… }
The corresponding service cannot be found
4. Check the corresponding services.xml and find it is empty
<span><</span><span>service </span><span>id</span><span>="ectools_analysis_hour"</span><span>></span> <span></</span><span>service</span><span>></span> <span><</span><span>service </span><span>id</span><span>="ectools_analysis_day"</span><span>></span> <span></</span><span>service</span><span>></span>
<span> 1</span><span><</span><span>service </span><span>id</span><span>="ectools_analysis_hour"</span><span>></span>
<span> 2</span> <span><</span><span>class</span><span>></span>b2c_analysis_advanceday<span></</span><span>class</span><span>></span> <span> 3</span> <span><</span><span>class</span><span>></span>b2c_analysis_saleday<span></</span><span>class</span><span>></span> <span> 4</span> <span><</span><span>class</span><span>></span>b2c_analysis_shopsale<span></</span><span>class</span><span>></span> <span> 5</span> <span></</span><span>service</span><span>></span> <span> 6</span> <span> 7</span> <span><</span><span>service </span><span>id</span><span>="ectools_analysis_day"</span><span>></span> <span> 8</span> <span><</span><span>class</span><span>></span>b2c_analysis_advanceday<span></</span><span>class</span><span>></span> <span> 9</span> <span><</span><span>class</span><span>></span>b2c_analysis_saleday<span></</span><span>class</span><span>></span> <span>10</span> <span><</span><span>class</span><span>></span>b2c_analysis_shopsale<span></</span><span>class</span><span>></span> <span>11</span> <span></</span><span>service</span><span>></span>