Merge pull request '给相关内容添加user_id' (#14) from zhangwei into dev
Reviewed-on: #14
This commit is contained in:
commit
0932758165
|
@ -67,6 +67,7 @@
|
|||
}
|
||||
Db::transaction(function()use($params,$plant,$land){
|
||||
Action::create([
|
||||
'user_id' => $plant['user_id'],
|
||||
'plant_id' => $params['plant_id'],
|
||||
'type' => $params['type'],
|
||||
'type_text' => $this->actionMessage[$params['type']],
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
Db::transaction(function()use($land,$device) {
|
||||
Device::where('id',$device['id'])->update([
|
||||
'is_bind' => 2,
|
||||
'user_id' => $land['user_id'],
|
||||
'update_time' => time()
|
||||
]);
|
||||
LandDevice::create([
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
Db::transaction(function()use($params,$land) {
|
||||
Plant::create([
|
||||
'land_id' => $params['land_id'],
|
||||
'user_id' => $land['user_id'],
|
||||
'kind' => $params['kind'],
|
||||
'breed' => $params['breed'],
|
||||
'area' => $params['area'],
|
||||
|
|
Loading…
Reference in New Issue