|
|
@ -129,10 +129,13 @@ class webgetbokun extends CI_Controller
|
|
|
|
//先旧的infometa表
|
|
|
|
//先旧的infometa表
|
|
|
|
$tempRequireFileds = $activityDeatil->requiredCustomerFields; //根据抓取的需求字段,判断是否需要passport
|
|
|
|
$tempRequireFileds = $activityDeatil->requiredCustomerFields; //根据抓取的需求字段,判断是否需要passport
|
|
|
|
if (is_array($tempRequireFileds)) {
|
|
|
|
if (is_array($tempRequireFileds)) {
|
|
|
|
|
|
|
|
if (is_array($tempRequireFileds[0])){
|
|
|
|
if (in_array("passportId", $tempRequireFileds[0])) {
|
|
|
|
if (in_array("passportId", $tempRequireFileds[0])) {
|
|
|
|
$this->tpBokun_model->addMeta($ic_id, "meta_trippest_type", "gg");
|
|
|
|
$this->tpBokun_model->addMeta($ic_id, "meta_trippest_type", "gg");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
$this->tpBokun_model->addMeta($ic_id, "meta_product_code", $PAG_Code); //对应翰特编码
|
|
|
|
$this->tpBokun_model->addMeta($ic_id, "meta_product_code", $PAG_Code); //对应翰特编码
|
|
|
|
$this->tpBokun_model->addMeta($ic_id, "meta_facts_city", $activityDeatil->googlePlace->city); //保存一下具体城市
|
|
|
|
$this->tpBokun_model->addMeta($ic_id, "meta_facts_city", $activityDeatil->googlePlace->city); //保存一下具体城市
|
|
|
|
|
|
|
|
|
|
|
@ -145,6 +148,7 @@ class webgetbokun extends CI_Controller
|
|
|
|
|
|
|
|
|
|
|
|
$this->InfoBokunData_model->ibd_parentId = $ibd_id; //设置剩余的属性都是这个activityid的子类,避免每条记录都保存activityid
|
|
|
|
$this->InfoBokunData_model->ibd_parentId = $ibd_id; //设置剩余的属性都是这个activityid的子类,避免每条记录都保存activityid
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($activityDeatil->keyPhoto)){
|
|
|
|
$this->InfoBokunData_model->ibd_ItemName = "keyPhoto"; //主要图片
|
|
|
|
$this->InfoBokunData_model->ibd_ItemName = "keyPhoto"; //主要图片
|
|
|
|
$this->InfoBokunData_model->ibd_Itemvalue = $activityDeatil->keyPhoto->originalUrl;
|
|
|
|
$this->InfoBokunData_model->ibd_Itemvalue = $activityDeatil->keyPhoto->originalUrl;
|
|
|
|
$this->InfoBokunData_model->ibd_ItemType = "originalUrl";
|
|
|
|
$this->InfoBokunData_model->ibd_ItemType = "originalUrl";
|
|
|
@ -157,6 +161,8 @@ class webgetbokun extends CI_Controller
|
|
|
|
$this->InfoBokunData_model->Add();
|
|
|
|
$this->InfoBokunData_model->Add();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$arrProductPhoto = $activityDeatil->photos; //产品主要图片
|
|
|
|
$arrProductPhoto = $activityDeatil->photos; //产品主要图片
|
|
|
|
if (is_array($arrProductPhoto)) {
|
|
|
|
if (is_array($arrProductPhoto)) {
|
|
|
@ -231,6 +237,7 @@ class webgetbokun extends CI_Controller
|
|
|
|
$arrAgendaItems = $activityDeatil->agendaItems; //保存产品行程里面的派生图片
|
|
|
|
$arrAgendaItems = $activityDeatil->agendaItems; //保存产品行程里面的派生图片
|
|
|
|
if (is_array($arrAgendaItems)) {
|
|
|
|
if (is_array($arrAgendaItems)) {
|
|
|
|
foreach ($arrAgendaItems as $agendaItem) {
|
|
|
|
foreach ($arrAgendaItems as $agendaItem) {
|
|
|
|
|
|
|
|
if (isset($agendaItem->keyPhoto)){
|
|
|
|
if ($agendaItem->keyPhoto != null && $agendaItem->keyPhoto != "") {
|
|
|
|
if ($agendaItem->keyPhoto != null && $agendaItem->keyPhoto != "") {
|
|
|
|
$this->InfoBokunData_model->ibd_ItemName = "AgendaPhoto";
|
|
|
|
$this->InfoBokunData_model->ibd_ItemName = "AgendaPhoto";
|
|
|
|
$this->InfoBokunData_model->ibd_Itemvalue = $agendaItem->keyPhoto->originalUrl;
|
|
|
|
$this->InfoBokunData_model->ibd_Itemvalue = $agendaItem->keyPhoto->originalUrl;
|
|
|
@ -238,6 +245,8 @@ class webgetbokun extends CI_Controller
|
|
|
|
$this->InfoBokunData_model->ibd_ItemType = "originalUrl";
|
|
|
|
$this->InfoBokunData_model->ibd_ItemType = "originalUrl";
|
|
|
|
$this->InfoBokunData_model->Add();
|
|
|
|
$this->InfoBokunData_model->Add();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$arrAgendaItemPhotos = $agendaItem->photos;
|
|
|
|
$arrAgendaItemPhotos = $agendaItem->photos;
|
|
|
|
if (is_array($arrAgendaItemPhotos)) {
|
|
|
|
if (is_array($arrAgendaItemPhotos)) {
|
|
|
|