//获得这个人目前的订单 echo MES_Order::get_order_list(); } else { if ($action == 'get_order_address') { //获得这人所有的地址信息 echo MES_Order::get_order_address(); } else { if ($action == 'add_order_address') { //增加新的地址信息 $contact = ANTI_SPAM($_POST['contact'], array('minLength' => 1, 'maxLength' => 100)); $country = ANTI_SPAM($_POST['country'], array('values' => array(441, 501))); $city = ANTI_SPAM($_POST['city'], array('minValue' => 543, 'maxValue' => 573, 'type' => 'number')); $address = ANTI_SPAM($_POST['address'], array('minLength' => 1, 'maxLength' => 200)); $district = ANTI_SPAM($_POST['district'], array('minValue' => 0, 'maxValue' => 20, 'type' => 'number', 'empty' => true)); $tel = ANTI_SPAM($_POST['tel'], array('minLength' => 5, 'maxLength' => 20)); echo MES_Order::add_order_address($contact, $country, $city, $address, $tel, $district); } else { if ($action == 'del_order_address') { //删除地址 $id = ANTI_SPAM($_POST['id'], array('minLength' => 1, 'maxLength' => 12, 'type' => 'number')); echo MES_Order::del_order_address($id); } else { if ($action == 'update_order_address') { //更新地址信息 $id = ANTI_SPAM($_POST['id'], array('minLength' => 1, 'maxLength' => 12, 'type' => 'number')); $contact = ANTI_SPAM($_POST['contact'], array('minLength' => 1, 'maxLength' => 100)); $country = ANTI_SPAM($_POST['country'], array('values' => array(441, 501))); $city = ANTI_SPAM($_POST['city'], array('minValue' => 543, 'maxValue' => 573, 'type' => 'number')); $address = ANTI_SPAM($_POST['address'], array('minLength' => 1, 'maxLength' => 200)); $district = ANTI_SPAM($_POST['district'], array('minValue' => 0, 'maxValue' => 20, 'type' => 'number', 'empty' => true)); $tel = ANTI_SPAM($_POST['tel'], array('minLength' => 5, 'maxLength' => 20));