瀏覽代碼

Merge branch 'web_sannong_fr' into dev

15313670163 1 月之前
父節點
當前提交
d7c90ed827
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      app/JsonRpc/NewsService.php

+ 1 - 3
app/JsonRpc/NewsService.php

@@ -894,10 +894,8 @@ class NewsService implements NewsServiceInterface
                         if(!empty($choice_id)){
                         if(!empty($choice_id)){
                             $key = array_search($choice['other']['id'], $choice_id);
                             $key = array_search($choice['other']['id'], $choice_id);
                             if ($key!== false) {
                             if ($key!== false) {
-                                unset($choice_id[$key]);
-                                $choice_id = array_values($choice_id);
+                                $$choice_id[$key]=$choice['other']['other_id'];
                             }
                             }
-                            array_push($choice_id,$choice['other']['other_id']);
                         }else{
                         }else{
                             $choice_id[0] = $choice['other']['other_id'];
                             $choice_id[0] = $choice['other']['other_id'];
                         }
                         }