【类 型】:
【原 因】: 【过 程】: 【影 响】:
This commit is contained in:
parent
417d0dbd2f
commit
5e18cd260f
@ -569,7 +569,7 @@ class PlaneController extends PublicController
|
|||||||
$where['shop_id'] = $shop_id;
|
$where['shop_id'] = $shop_id;
|
||||||
|
|
||||||
$noflyDb = D('nofly');
|
$noflyDb = D('nofly');
|
||||||
$field = ['id', 'shop_id', 'nofly_data', 'restrictfly_data'];
|
$field = ['id', 'shop_id', 'nofly_data', 'restrictfly_data', 'restrictfly_height'];
|
||||||
$noflyData = $noflyDb->where($where)->field($field)->find();
|
$noflyData = $noflyDb->where($where)->field($field)->find();
|
||||||
|
|
||||||
if ($noflyData) {
|
if ($noflyData) {
|
||||||
@ -579,7 +579,8 @@ class PlaneController extends PublicController
|
|||||||
$data = [
|
$data = [
|
||||||
'shop_id' => $shop_id,
|
'shop_id' => $shop_id,
|
||||||
'nofly_data' => '[]',
|
'nofly_data' => '[]',
|
||||||
'restrictfly_data' => '[]'
|
'restrictfly_data' => '[]',
|
||||||
|
'restrictfly_height' => '[]'
|
||||||
];
|
];
|
||||||
$insertId = $noflyDb->add($data);
|
$insertId = $noflyDb->add($data);
|
||||||
if ($insertId) {
|
if ($insertId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user