lizhen_gitee 1 year ago
parent
commit
38eb8fa3d4
2 changed files with 18 additions and 2 deletions
  1. 18 0
      application/api/controller/Userbank.php
  2. 0 2
      application/extra/site.php

+ 18 - 0
application/api/controller/Userbank.php

@@ -74,6 +74,24 @@ class Userbank extends Api
         $this->success("获取成功!",$bankInfo);
     }
 
+    //解绑
+    public function unbind(){
+        $type = input('type',0);
+        if(!in_array($type,[1,2])){
+            $this->error();
+        }
+
+        if($type == 1){
+            $table_name = 'user_alipay';
+        }else{
+            $table_name = 'user_bank';
+        }
+
+        Db::name($table_name)->where('user_id',$this->auth->id)->delete();
+
+        $this->success("解绑成功");
+    }
+
     /**
      * 绑定支付宝
      */

+ 0 - 2
application/extra/site.php

@@ -50,8 +50,6 @@ return array (
 好友收益1000金币可得100金币',
   'introsite_introrule' => '通过海报分享或者链接分享方式注册用户,或直接通过用户绑定方式进行参与活动',
   'kefu_user_ids' => '536',
-  'min_withdrawal_money' => '300',
-  'max_withdrawal_money' => '10000',
   'withdrawal_plat_bili' => '6',
   'intro_newuser_gift_moneynum' => '5',
   'android_is_force' => '1',