提交货源

pull/1/head
limu 10 months ago
parent 1b8a6334b9
commit fd39de8ced
  1. 11
      app/api/model/user/GoodSource.php

@ -39,11 +39,12 @@ class GoodSource extends GoodSourceModel
$this->error = '请补全信息';
return false;
}
return // 新增申请记录
$this->save(array_merge($data, [
'user_id' => $userId,
'store_id' => $store_id
]));
$data['imgage_ids'] = json_encode($data['imgage_ids']);
return $this->save(array_merge($data, [
'user_id' => $userId,
'store_id' => $store_id,
'created_at' => time(),
]));
}
}
Loading…
Cancel
Save