【类 型】:factor
【原 因】:删除掉飞机相关的weight_max字段 改字段将放置到机型表 下 【过 程】: 【影 响】:
This commit is contained in:
parent
82aa376a5f
commit
d4f120db78
@ -70,7 +70,6 @@ class PlaneController extends PublicController
|
|||||||
|
|
||||||
if ($_REQUEST['shop_id'] && $_REQUEST['class_name'] && $_REQUEST['id']) {
|
if ($_REQUEST['shop_id'] && $_REQUEST['class_name'] && $_REQUEST['id']) {
|
||||||
$data['class_name'] = $_REQUEST['class_name'];
|
$data['class_name'] = $_REQUEST['class_name'];
|
||||||
$data['weight_max'] = $_REQUEST['weight_max'];
|
|
||||||
$data['category'] = $_REQUEST['category'];
|
$data['category'] = $_REQUEST['category'];
|
||||||
$data['wheelbase'] = $_REQUEST['wheelbase'];
|
$data['wheelbase'] = $_REQUEST['wheelbase'];
|
||||||
if ($_REQUEST['describe']) {
|
if ($_REQUEST['describe']) {
|
||||||
@ -126,7 +125,7 @@ class PlaneController extends PublicController
|
|||||||
}
|
}
|
||||||
$where['del'] = "0";
|
$where['del'] = "0";
|
||||||
$airListDb = D('airplane_register');
|
$airListDb = D('airplane_register');
|
||||||
$field = array('id', 'name', 'macadd', 'describe', 'weight_max', 'shop_id', 'apply_time', 'onoff', 'del');
|
$field = array('id', 'name', 'macadd', 'describe', 'shop_id', 'apply_time', 'onoff', 'del');
|
||||||
if ($airList = $airListDb->where($where)->field($field)->select()) {
|
if ($airList = $airListDb->where($where)->field($field)->select()) {
|
||||||
echo json_encode(array('status' => 1, 'msg' => '访问成功', "airList" => $airList));
|
echo json_encode(array('status' => 1, 'msg' => '访问成功', "airList" => $airList));
|
||||||
} else {
|
} else {
|
||||||
@ -145,7 +144,6 @@ class PlaneController extends PublicController
|
|||||||
$data['shop_id'] = $_REQUEST['shop_id'];
|
$data['shop_id'] = $_REQUEST['shop_id'];
|
||||||
$data['name'] = $_REQUEST['name'];
|
$data['name'] = $_REQUEST['name'];
|
||||||
$data['onoff'] = $_REQUEST['onoff'];
|
$data['onoff'] = $_REQUEST['onoff'];
|
||||||
$data['weight_max'] = $_REQUEST['weight_max'];
|
|
||||||
$data['apply_time'] = substr($_REQUEST['date'], 0, -3);
|
$data['apply_time'] = substr($_REQUEST['date'], 0, -3);
|
||||||
if ($_REQUEST['desc']) {
|
if ($_REQUEST['desc']) {
|
||||||
$data['describe'] = $_REQUEST['desc'];
|
$data['describe'] = $_REQUEST['desc'];
|
||||||
@ -171,7 +169,6 @@ class PlaneController extends PublicController
|
|||||||
if ($_REQUEST['shop_id'] && $_REQUEST['name'] && $_REQUEST['id']) {
|
if ($_REQUEST['shop_id'] && $_REQUEST['name'] && $_REQUEST['id']) {
|
||||||
$data['name'] = $_REQUEST['name'];
|
$data['name'] = $_REQUEST['name'];
|
||||||
$data['onoff'] = $_REQUEST['onoff'];
|
$data['onoff'] = $_REQUEST['onoff'];
|
||||||
$data['weight_max'] = $_REQUEST['weight_max'];
|
|
||||||
$data['apply_time'] = substr($_REQUEST['date'], 0, -3);
|
$data['apply_time'] = substr($_REQUEST['date'], 0, -3);
|
||||||
if ($_REQUEST['desc']) {
|
if ($_REQUEST['desc']) {
|
||||||
$data['describe'] = $_REQUEST['desc'];
|
$data['describe'] = $_REQUEST['desc'];
|
||||||
|
Loading…
Reference in New Issue
Block a user