Compare commits
2 Commits
cdeace5825
...
0932758165
Author | SHA1 | Date |
---|---|---|
weiz | 0932758165 | |
weiz | af3b375156 |
|
@ -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