|
@@ -473,9 +473,13 @@ class Apipf extends Start_Controller{
|
|
|
}
|
|
|
//每日更新一回
|
|
|
public function _dayUpdate(){
|
|
|
+ $api = $this->input->get('api',true);
|
|
|
+ if($api != $this->api){
|
|
|
+ die("No data to be executed");
|
|
|
+ }
|
|
|
$end_time = strtotime(date("Y-m-d"));
|
|
|
$start_time = $end_time - 24* 60 *60;
|
|
|
- $list = $this->fullorder->fina_all("dtime >= ".$start_time." and dtime < ".$end_time." and shop in (1,2,3,4,5,6) and source != 1 and state in (207,216) " );
|
|
|
+ $list = $this->fullorder->find_all("dtime >= ".$start_time." and dtime < ".$end_time." and shop in (1,2,3,4,5,6) and source != 1 and state in (207,216) " );
|
|
|
$customer_list = [];
|
|
|
$customer_ids = [];
|
|
|
foreach($list as $k=>$v){
|