接口修改3
This commit is contained in:
parent
3b5a892c75
commit
a2ac35d730
@ -455,9 +455,9 @@ class Maintainentry extends BaseController
|
||||
$data['updatetime'] = time();
|
||||
$res = Db::table('fa_szxc_information_usermsg')->where($map)->update($data);
|
||||
if ($res) {
|
||||
$this->apiSuccess('修改成功', null, 1);
|
||||
$this->apiSuccess('修改成功', '修改成功');
|
||||
} else {
|
||||
$this->apiSuccess('修改失败', null, '0');
|
||||
$this->apiSuccess('修改失败', '修改失败');
|
||||
}
|
||||
}
|
||||
|
||||
@ -554,9 +554,9 @@ class Maintainentry extends BaseController
|
||||
$data['updatetime'] = time();
|
||||
$res = Db::table('fa_szxc_information_usermsg')->where($map)->update($data);
|
||||
if ($res) {
|
||||
$this->apiSuccess('修改成功', null, 1);
|
||||
$this->apiSuccess('修改成功', '修改成功');
|
||||
} else {
|
||||
$this->apiSuccess('修改失败', null, '0');
|
||||
$this->apiSuccess('修改失败');
|
||||
}
|
||||
}
|
||||
|
||||
@ -761,7 +761,7 @@ class Maintainentry extends BaseController
|
||||
$data['updatetime'] = time();
|
||||
$res = Db::table('fa_szxc_information_planting')->where($map)->update($data);
|
||||
if ($res) {
|
||||
$this->apiSuccess('修改成功', null, 1);
|
||||
$this->apiSuccess('修改成功', '修改成功');
|
||||
} else {
|
||||
$this->apiError('修改失败');
|
||||
}
|
||||
@ -785,7 +785,7 @@ class Maintainentry extends BaseController
|
||||
$data['createtime'] = time();
|
||||
$res = Db::table('fa_szxc_information_planting')->insert($data);
|
||||
if ($res) {
|
||||
$this->apiSuccess('保存成功', null, 1);
|
||||
$this->apiSuccess('保存成功', '保存成功');
|
||||
} else {
|
||||
$this->apiError('保存失败');
|
||||
}
|
||||
@ -943,7 +943,7 @@ class Maintainentry extends BaseController
|
||||
$data['updatetime'] = time();
|
||||
$res = Db::table('fa_szxc_information_insurance')->where($map)->update($data);
|
||||
if ($res) {
|
||||
$this->apiSuccess('修改成功', null, 1);
|
||||
$this->apiSuccess('修改成功', '修改成功');
|
||||
} else {
|
||||
$this->apiError('修改失败');
|
||||
}
|
||||
@ -962,7 +962,7 @@ class Maintainentry extends BaseController
|
||||
$data['user_id'] = $post['user_id'];
|
||||
$res = Db::table('fa_szxc_information_insurance')->strict(false)->insert($data);
|
||||
if ($res) {
|
||||
$this->apiSuccess('修改成功', null, 1);
|
||||
$this->apiSuccess('修改成功', '修改成功');
|
||||
} else {
|
||||
$this->apiError('修改失败');
|
||||
}
|
||||
@ -1143,7 +1143,7 @@ class Maintainentry extends BaseController
|
||||
$data['updatetime'] = time();
|
||||
$res = Db::table('fa_szxc_information_healthy')->where($map)->update($data);
|
||||
if ($res) {
|
||||
$this->apiSuccess('修改成功', null, 1);
|
||||
$this->apiSuccess('修改成功', '修改成功');
|
||||
} else {
|
||||
$this->apiError('修改失败');
|
||||
}
|
||||
@ -1167,7 +1167,7 @@ class Maintainentry extends BaseController
|
||||
$data['user_id'] = $post['user_id'];
|
||||
$res = Db::table('fa_szxc_information_healthy')->strict(false)->insert($data);
|
||||
if ($res) {
|
||||
$this->apiSuccess('修改成功',null, 1);
|
||||
$this->apiSuccess('修改成功','修改成功');
|
||||
} else {
|
||||
$this->apiError('修改失败');
|
||||
}
|
||||
@ -1421,7 +1421,7 @@ class Maintainentry extends BaseController
|
||||
|
||||
}
|
||||
Db::commit();
|
||||
$this->apiSuccess('录入成功',null, 1);
|
||||
$this->apiSuccess('录入成功','录入成功');
|
||||
} catch (ValidateException | PDOException | Exception $e) {
|
||||
Db::rollback();
|
||||
$this->apiError($e->getMessage());
|
||||
@ -1624,7 +1624,7 @@ class Maintainentry extends BaseController
|
||||
}
|
||||
|
||||
Db::commit();
|
||||
$this->apiSuccess('录入成功',null, 1);
|
||||
$this->apiSuccess('录入成功','录入成功');
|
||||
} catch (ValidateException | PDOException | Exception $e) {
|
||||
Db::rollback();
|
||||
$this->apiError($e->getMessage());
|
||||
@ -1753,7 +1753,7 @@ class Maintainentry extends BaseController
|
||||
Db::table('fa_szxc_information_usermsg')->where('user_id',$user_id)->update($hz_data);
|
||||
|
||||
Db::commit();
|
||||
$this->apiSuccess('设置成功',null, 1);
|
||||
$this->apiSuccess('设置成功','设置成功');
|
||||
} catch (ValidateException | \PDOException | Exception $e) {
|
||||
Db::rollback();
|
||||
$this->apiError($e->getMessage());
|
||||
@ -1769,7 +1769,7 @@ class Maintainentry extends BaseController
|
||||
Db::table('fa_szxc_information_usermsg')->where($map)->update($hz_data);
|
||||
|
||||
Db::commit();
|
||||
$this->apiSuccess('设置成功',null, 1);
|
||||
$this->apiSuccess('设置成功','设置成功');
|
||||
} catch (ValidateException | \PDOException | Exception $e) {
|
||||
Db::rollback();
|
||||
$this->apiError($e->getMessage());
|
||||
|
Loading…
x
Reference in New Issue
Block a user