...
|
...
|
@@ -694,4 +694,27 @@ class Add extends Api |
|
|
$xie = Db::name('agreement')->where('user_id', $UserId)->where('status', 1)->find();
|
|
|
$this->success('成功', ['IsYong' => (empty($yong) ? 0 : 1), 'IsXie' => (empty($xie) ? 0 : 1)]);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (电池充满状态修改)
|
|
|
* @ApiSummary (电池充满状态修改)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiRoute (/api/Add/BatteryOk)
|
|
|
* @ApiParams (name="battery_code", type="string", required=true, description="电池编码")
|
|
|
* @ApiReturnParams (name="code", type="integer", required=true, sample="0")
|
|
|
* @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
|
|
|
* @ApiReturn ({
|
|
|
'code':'1',
|
|
|
'msg':'返回成功',
|
|
|
"data": {
|
|
|
}
|
|
|
})
|
|
|
*/
|
|
|
public function InsertBattery()
|
|
|
{
|
|
|
$Params = $this->request->param();
|
|
|
/*更改电量状态*/
|
|
|
$Res= Db::name('cp')->where('battery_code', $Params['battery_code'])->update(['status' => 0]);
|
|
|
$this->Res($Res);
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|