Browse Source

sunguidong

zhangguidong 2 years ago
parent
commit
41ff0b6105
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/store/controller/Activity.php

+ 2 - 2
application/store/controller/Activity.php

@@ -121,9 +121,9 @@ class Activity extends Controller
     protected function _form_filter(&$data)
     {
         if ($this->request->isPost()) {
-            $nuture = [];
+            $nuture[] = '';
             foreach ($data['nature'] as $k=>$v){
-                $nuture = $k;
+                $nuture[] = $k;
             }
           $data['nature']=implode(',', $nuture);
             $data['create_at']=date('Y-m-d H:i:s');