|
|
|
@ -1012,12 +1012,14 @@ class Information extends CI_Controller
|
|
|
|
|
public function replace_price_tag($price_content)
|
|
|
|
|
{
|
|
|
|
|
$price_item_array = $this->price_pregmatch($price_content);
|
|
|
|
|
var_dump($price_item_array);
|
|
|
|
|
if ( ! empty($price_item_array)) {
|
|
|
|
|
foreach ($price_item_array as $price_item) {
|
|
|
|
|
$price_date = !empty($price_item->price_date) ? $price_item->price_date : date('Y-m-d', time() + 86400 * 7); //当前时间7天后的价格
|
|
|
|
|
$price_number = '';
|
|
|
|
|
//优先读取新的价格体系
|
|
|
|
|
$price = $this->PrimeLinePrice_model->search($price_item->cli_no, 1, $price_item->cli_grade, $price_item->person_size, $price_date);
|
|
|
|
|
var_dump($price);
|
|
|
|
|
if (!empty($price)) {
|
|
|
|
|
switch (strtoupper($price_item->price_people)) {
|
|
|
|
|
case 'A':
|
|
|
|
|