更新档案
This commit is contained in:
parent
73649e2e28
commit
7473a3aaec
@ -88,7 +88,7 @@ class UserInformationg extends BaseModel
|
|||||||
public static function informationg_demand($param, $id, $admin_id)
|
public static function informationg_demand($param, $id, $admin_id)
|
||||||
{
|
{
|
||||||
if (isset($param['card_id']) && $param['card_id'] > 0) {
|
if (isset($param['card_id']) && $param['card_id'] > 0) {
|
||||||
$category_id = Db::name('category_business')->where('id', $param['card_id'])->value('pid');
|
$category_info = Db::name('category_business')->where('id', $param['card_id'])->feild(['pid', 'data_field'])->find();
|
||||||
$category_child = $param['card_id'];
|
$category_child = $param['card_id'];
|
||||||
} else {
|
} else {
|
||||||
$category_id = 0;
|
$category_id = 0;
|
||||||
@ -96,7 +96,7 @@ class UserInformationg extends BaseModel
|
|||||||
}
|
}
|
||||||
$data = [
|
$data = [
|
||||||
'create_user_id' => $admin_id,
|
'create_user_id' => $admin_id,
|
||||||
'category_id' => $category_id,
|
'category_id' => $category_info['pid'] ?? 0,
|
||||||
'category_child' => $category_child,
|
'category_child' => $category_child,
|
||||||
'data' => json_encode($param['datas']),
|
'data' => json_encode($param['datas']),
|
||||||
'create_time' => time(),
|
'create_time' => time(),
|
||||||
@ -104,6 +104,7 @@ class UserInformationg extends BaseModel
|
|||||||
'status' => 1,
|
'status' => 1,
|
||||||
'information_id' => $id,
|
'information_id' => $id,
|
||||||
];
|
];
|
||||||
|
dd($category_info->toArray(), $data);
|
||||||
return UserInformationgDemand::create($data);
|
return UserInformationgDemand::create($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user