zhangxiaobin 1 год назад
Родитель
Сommit
57bbbcc680
2 измененных файлов с 4 добавлено и 4 удалено
  1. 1 1
      application/api/controller/Index.php
  2. 3 3
      application/api/controller/User.php

+ 1 - 1
application/api/controller/Index.php

@@ -399,7 +399,7 @@ class Index extends Api
         //$where['is_online'] = 1;
         $where['is_close'] = 0;
         $where['status'] = 1;
-        $partyList = \app\common\model\Party::field("id,party_logo,party_id,party_name,party_type")
+        $partyList = \app\common\model\Party::field("id,room_type,party_logo,party_id,party_name,party_type")
             ->where($where)
             ->where(function ($query) {
                 global $whereOr;

+ 3 - 3
application/api/controller/User.php

@@ -1121,8 +1121,8 @@ class User extends Api
     {
         //$user = $this->auth->getUser();
         $user = model('User')->find($this->auth->id);
-        $mobile = $this->request->post('mobile');
-        $captcha = $this->request->post('captcha');
+        $mobile = $this->request->param('mobile');
+        $captcha = $this->request->param('captcha');
 
         if(!empty($this->auth->mobile)){
             $this->error('已经绑定了手机号');
@@ -1158,7 +1158,7 @@ class User extends Api
      */
     public function bindopenid()
     {
-        $code =  $this->request->post('code','');
+        $code =  $this->request->param('code','');
         if(!$code){
             $this->error(__('Invalid parameters'));
         }