private function setDataToMobile($data)
 {
     $insertData = array();
     $insertData['calDt'] = $data->calDt;
     $insertData['uploadTime'] = $data->uploadTime;
     $insertData['requireId'] = $data->requireId;
     $insertData['biId'] = $data->id;
     $insertData['userId'] = $data->userId;
     $insertData['chatId'] = $data->chatId;
     $insertData['brokerId'] = $data->brokerId;
     $insertData['guid'] = $data->guid;
     $insertData['macId'] = $data->macId;
     $insertData['udid2'] = $data->udid2;
     $insertData['appName'] = $data->appName;
     $MODEL = Model_RecommendCus_SynRecommendCus::create($insertData, date('Ym'));
     $MODEL::$enable_cache = false;
     $MODEL->save();
 }
Ejemplo n.º 2
0
 private function getData()
 {
     return Model_RecommendCus_SynRecommendCus::data_access($this->cursor['month'])->filter_by_op('id', '>', $this->cursor['id'])->limit($this->limit)->get_all();
 }