You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.8 KiB
84 lines
1.8 KiB
<?php
|
|
error_reporting(E_ALL);
|
|
ini_set('dispaly_errors', "On");
|
|
require_once './MSCalculator.php';
|
|
|
|
|
|
//客梯
|
|
$param = [
|
|
|
|
'elevator_type' => 'A',
|
|
'floors' => 7,
|
|
'speed' => 1,
|
|
'persons' => 6,
|
|
'weight' => 1000,
|
|
'maintain_times' => 1,
|
|
'maintain_months' => 12,
|
|
'maintain_kind' => 2,
|
|
'maintain_period' => 1, //默认为1月1次, 2是为2月一次
|
|
'is_m1_bundle' => 'N',
|
|
];
|
|
|
|
//货梯
|
|
$param = [
|
|
|
|
'elevator_type' => 'B',
|
|
'floors' => 7,
|
|
'speed' => 1,
|
|
'persons' => 6,
|
|
'weight' => 1000,
|
|
'maintain_times' => 1,
|
|
'maintain_months' => 12,
|
|
'maintain_kind' => 2,
|
|
'maintain_period' => 1, //默认为1月1次, 2是为2月一次
|
|
'is_m1_bundle' => 'N',
|
|
];
|
|
|
|
|
|
//病床梯
|
|
$param = [
|
|
|
|
'elevator_type' => 'C',
|
|
'floors' => 28,
|
|
'speed' => 1,
|
|
'persons' => 6,
|
|
'weight' => 1000,
|
|
'maintain_times' => 2, //病床梯一月2次保养
|
|
'maintain_months' => 12,
|
|
'maintain_kind' => 2,
|
|
'maintain_period' => 1, //默认为1月1次, 2是为2月一次
|
|
'is_m1_bundle' => 'N',
|
|
];
|
|
|
|
//无机房
|
|
$param = [
|
|
'elevator_type' => 'D',
|
|
'floors' => 3,
|
|
'speed' => 1,
|
|
'persons' => 6,
|
|
'weight' => 1000,
|
|
'maintain_times' => 1, //病床梯一月2次保养
|
|
'maintain_months' => 12,
|
|
'maintain_kind' => 3,
|
|
'maintain_period' => 1, //默认为1月1次, 2是为2月一次
|
|
'is_m1_bundle' => 'N',
|
|
];
|
|
|
|
|
|
//家用梯
|
|
$param = [
|
|
'elevator_type' => 'E',
|
|
'floors' => 3,
|
|
'speed' => 1,
|
|
'persons' => 6,
|
|
'weight' => 1000,
|
|
'maintain_times' => 1, //病床梯一月2次保养
|
|
'maintain_months' => 60,
|
|
'maintain_kind' => 2,
|
|
'maintain_period' => 1, //默认为1月1次, 2是为2月一次
|
|
'is_m1_bundle' => 'Y',
|
|
];
|
|
|
|
$mic = new MSCalculator();
|
|
$price = $mic->cal($_GET);
|
|
echo json_encode($price);
|
|
|