|
@@ -228,6 +228,11 @@ class NewsService implements NewsServiceInterface
|
|
|
*/
|
|
|
public function addArticle(array $data): array
|
|
|
{
|
|
|
+ var_dump($data, '----------12-----------1');
|
|
|
+ unset($data['user_type']);
|
|
|
+ // unset($data['web_site_id']);
|
|
|
+ unset($data['nav_add_pool_id']);
|
|
|
+ // $data['cat_arr_id'] = is_string($data['cat_arr_id']) ? json_encode($data['cat_arr_id']) : '';
|
|
|
Db::beginTransaction();
|
|
|
try {
|
|
|
//处理投票
|
|
@@ -332,6 +337,9 @@ class NewsService implements NewsServiceInterface
|
|
|
public function updateArticle(array $data): array
|
|
|
{
|
|
|
Db::beginTransaction();
|
|
|
+ unset($data['user_type']);
|
|
|
+ // unset($data['web_site_id']);
|
|
|
+ unset($data['nav_add_pool_id']);
|
|
|
try {
|
|
|
//处理投票
|
|
|
$is_survey = isset($data['is_survey']) ? $data['is_survey'] : 0;
|