AI 1 month ago
parent
commit
2d395052dc
2 changed files with 57 additions and 7 deletions
  1. 1 4
      app/JsonRpc/NewsService.php
  2. 56 3
      composer.lock

+ 1 - 4
app/JsonRpc/NewsService.php

@@ -406,8 +406,7 @@ class NewsService implements NewsServiceInterface
             if ($data['status'] == '') {
                 $data['status'] = 0;
             }
-
-            $data['cat_arr_id'] = is_array($data['cat_arr_id']) ? json_encode($data['cat_arr_id']) : '';
+            $data['cat_arr_id'] = is_array($data['cat_arr_id']) ? json_encode($data['cat_arr_id']) : $data['cat_arr_id'];
             $data['tag'] = isset($data['tag']) ? json_encode($data['tag']) : '';
             $articleData = $data;
             unset($articleData['content']);
@@ -468,9 +467,7 @@ class NewsService implements NewsServiceInterface
                 $uuid = date('YmdHis') . rand(10000000, 99999999);
                 $suveys_array = is_array($suvey_array) ? $suvey_array : json_decode($suvey_array);
                 var_dump($suveys_array, '---------------------1');
-                var_dump($suvey_array, '---------------------2');
                 $suvey_data = [];
-
                 if (is_array($suveys_array)) {
                     foreach ($suveys_array as $key => $value) {
                         if ($value == '') {

+ 56 - 3
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "1935bfafe4523350f25d98a64e75d710",
+    "content-hash": "04eeed2b1b6a04f0539eaee477e8e0af",
     "packages": [
         {
             "name": "carbonphp/carbon-doctrine-types",
@@ -445,6 +445,59 @@
             },
             "time": "2020-11-24T22:02:12+00:00"
         },
+        {
+            "name": "fukuball/jieba-php",
+            "version": "0.34",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/fukuball/jieba-php.git",
+                "reference": "44d62bda8b80fe07ff59e8fc654f477685109a66"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/fukuball/jieba-php/zipball/44d62bda8b80fe07ff59e8fc654f477685109a66",
+                "reference": "44d62bda8b80fe07ff59e8fc654f477685109a66",
+                "shasum": ""
+            },
+            "require": {
+                "php": ">= 5.3"
+            },
+            "require-dev": {
+                "php-coveralls/php-coveralls": "dev-master",
+                "phpunit/phpunit": "~9.0",
+                "squizlabs/php_codesniffer": "4.0.x-dev"
+            },
+            "type": "library",
+            "autoload": {
+                "files": [
+                    "src/vendor/multi-array/MultiArray.php",
+                    "src/vendor/multi-array/Factory/MultiArrayFactory.php"
+                ],
+                "psr-4": {
+                    "Fukuball\\Jieba\\": "src/class/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "fukuball",
+                    "email": "fukuball@gmail.com"
+                }
+            ],
+            "description": "結巴中文分詞(PHP 版本):做最好的 PHP 中文分詞、中文斷詞組件",
+            "keywords": [
+                "Jieba",
+                "php"
+            ],
+            "support": {
+                "issues": "https://github.com/fukuball/jieba-php/issues",
+                "source": "https://github.com/fukuball/jieba-php/tree/0.34"
+            },
+            "time": "2022-08-15T06:26:03+00:00"
+        },
         {
             "name": "graham-campbell/result-type",
             "version": "v1.1.2",
@@ -10262,12 +10315,12 @@
     ],
     "aliases": [],
     "minimum-stability": "dev",
-    "stability-flags": [],
+    "stability-flags": {},
     "prefer-stable": true,
     "prefer-lowest": false,
     "platform": {
         "php": ">=8.1"
     },
-    "platform-dev": [],
+    "platform-dev": {},
     "plugin-api-version": "2.6.0"
 }