|
|
|
@ -204,8 +204,8 @@ class Tulanduo extends CI_Controller
|
|
|
|
|
// $this->tldOrderBuilder->setModifyLogInfo($modifyLogInfo)
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
// $resp = $this->excute_curl($this->neworder_url, $this->tldOrderBuilder);
|
|
|
|
|
$resp = '{"status":1,"errMsg":"","responseData":{"orderId":' . rand(1000,9999) . '}}'; // test
|
|
|
|
|
$resp = $this->excute_curl($this->neworder_url, $this->tldOrderBuilder);
|
|
|
|
|
// $resp = '{"status":1,"errMsg":"","responseData":{"orderId":' . rand(1000,9999) . '}}'; // test
|
|
|
|
|
$response = json_decode($resp);
|
|
|
|
|
if ($response->status == 1) {
|
|
|
|
|
/** VendorPlanSync */
|
|
|
|
@ -229,7 +229,8 @@ class Tulanduo extends CI_Controller
|
|
|
|
|
/** VendorArrangeState VAS_IsReceive */
|
|
|
|
|
$this->Group_model->set_plan_received($vas_sn);
|
|
|
|
|
}
|
|
|
|
|
return $this->tldOrderBuilder->getBizContent() . "Order Push done. ";
|
|
|
|
|
// return $this->tldOrderBuilder->getBizContent() . "[Tulanduo>push_tour] Done. ";
|
|
|
|
|
return "[Tulanduo>push_tour] Done. ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
@ -483,11 +484,8 @@ class Tulanduo extends CI_Controller
|
|
|
|
|
// $this->tldOrderBuilder->setModifyLogInfo($modifyLogInfo)
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
// echo(($this->tldOrderBuilder->getBizContent()));
|
|
|
|
|
// $this->output->set_content_type('application/json')->set_output($this->tldOrderBuilder->getBizContent());
|
|
|
|
|
// $resp = $this->excute_curl($this->neworder_url, $this->tldOrderBuilder);
|
|
|
|
|
// var_dump($resp);
|
|
|
|
|
$resp = '{"status":1,"errMsg":"","responseData":{"orderId":' . rand(1000,9999) . '}}'; // test
|
|
|
|
|
$resp = $this->excute_curl($this->neworder_url, $this->tldOrderBuilder);
|
|
|
|
|
// $resp = '{"status":1,"errMsg":"","responseData":{"orderId":' . rand(1000,9999) . '}}'; // test
|
|
|
|
|
$response = json_decode($resp);
|
|
|
|
|
if ($response->status == 1) {
|
|
|
|
|
/** VendorPlanSync */
|
|
|
|
@ -513,7 +511,7 @@ class Tulanduo extends CI_Controller
|
|
|
|
|
$this->Group_model->set_plan_received($vas_sn);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return "Order Push done. ";
|
|
|
|
|
return "[Tulanduo>push_trippest] Done. ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function tourguide_update($input, $vps, $eva)
|
|
|
|
@ -532,8 +530,8 @@ class Tulanduo extends CI_Controller
|
|
|
|
|
$this->tld_order->setOrderId($vps->VPS_externalId)
|
|
|
|
|
->setUserId($userId)
|
|
|
|
|
->setKey($userKey);
|
|
|
|
|
// $detail_resp = $this->excute_curl($this->detail_url, $this->tld_order);
|
|
|
|
|
$detail_resp = '{"status":1,"errMsg":"","orderDetail":{"orderId":' . rand(1000,9999) . ',"operationDetails": {"guiderOperations":[{"name":"北京翟梦琪Susie","mobelPhone":"18801326155","startDate":"2017-04-25","endDate":"2017-04-25","sumMoney":400,"remark":"","guiderPhoto":"http://djb3c.ltsoftware.net:9921/projects/djb3c//uploadImages/guider/1526898234415.png"}]}}}'; // test
|
|
|
|
|
$detail_resp = $this->excute_curl($this->detail_url, $this->tld_order);
|
|
|
|
|
// $detail_resp = '{"status":1,"errMsg":"","orderDetail":{"orderId":' . rand(1000,9999) . ',"operationDetails": {"guiderOperations":[{"name":"北京翟梦琪Susie","mobelPhone":"18801326155","startDate":"2017-04-25","endDate":"2017-04-25","sumMoney":400,"remark":"","guiderPhoto":"http://djb3c.ltsoftware.net:9921/projects/djb3c//uploadImages/guider/1526898234415.png"}]}}}'; // test
|
|
|
|
|
$detail_jsonResp = json_decode($detail_resp);
|
|
|
|
|
// 判断
|
|
|
|
|
if ($detail_jsonResp->status !== 1) {
|
|
|
|
@ -564,7 +562,7 @@ class Tulanduo extends CI_Controller
|
|
|
|
|
$ret['errMsg'] = "导游信息未录入";
|
|
|
|
|
return $ret;
|
|
|
|
|
}
|
|
|
|
|
$vendor_contactor = $this->Group_model->get_vendor_contactor($eva[0]->EOI_ObjSN);
|
|
|
|
|
$vendor_contactor = $this->Group_model->get_vendorContact($eva[0]->EOI_ObjSN);
|
|
|
|
|
$eva_tgi_column = array(
|
|
|
|
|
"EOI_Type" => 3
|
|
|
|
|
,"EOI_GRI_SN" => $eva[0]->EOI_GRI_SN
|
|
|
|
|