12345678910111213141516171819202122 |
- <?php
- namespace app\common\model;
- use think\Db;
- class Bracelet extends Base
- {
- protected $table='bracelet_device';
- public function saves(){
- $data = request()->post();
- $data['org_id'] = cur_org_id();
- $id = $data['id'];
- if($id >0){
- $data['update_time'] = getTime();
- }else{
- $data['create_time'] = getTime();
- }
- return $this->updateInfo($data,'Bracelet','');
- }
- }
|