Преглед на файлове

后台提现没有读取到微信提现信息

sugar1569 преди 6 години
родител
ревизия
6322868965
променени са 2 файла, в които са добавени 20 реда и са изтрити 3 реда
  1. 12 0
      application/admin/controller/finance/UserExtract.php
  2. 8 3
      application/admin/view/finance/user_extract/index.php

+ 12 - 0
application/admin/controller/finance/UserExtract.php

@@ -37,6 +37,8 @@ class UserExtract extends AuthController
         $f[] = Form::number('extract_price','提现金额',$UserExtract['extract_price'])->precision(2);
         if($UserExtract['extract_type']=='alipay'){
             $f[] = Form::input('alipay_code','支付宝账号',$UserExtract['alipay_code']);
+        }else if($UserExtract['extract_type']=='weixin'){
+            $f[] = Form::input('wechat','微信号',$UserExtract['wechat']);
         }else{
             $f[] = Form::input('bank_code','银行卡号',$UserExtract['bank_code']);
             $f[] = Form::input('bank_address','开户行',$UserExtract['bank_address']);
@@ -61,6 +63,16 @@ class UserExtract extends AuthController
             if(!$data['real_name']) return JsonService::fail('请输入姓名');
             if($data['extract_price']<=-1) return JsonService::fail('请输入提现金额');
             if(!$data['alipay_code']) return JsonService::fail('请输入支付宝账号');
+        }else if($UserExtract['extract_type']=='weixin'){
+            $data = Util::postMore([
+                'real_name',
+                'mark',
+                'extract_price',
+                'wechat',
+            ],$request);
+//            if(!$data['real_name']) return JsonService::fail('请输入姓名');
+            if($data['extract_price']<=-1) return JsonService::fail('请输入提现金额');
+            if(!$data['wechat']) return JsonService::fail('请输入微信账号');
         }else{
             $data = Util::postMore([
                 'real_name',

+ 8 - 3
application/admin/view/finance/user_extract/index.php

@@ -30,6 +30,7 @@
                                 <option value="">提现方式</option>
                                 <option value="alipay" {eq name="where.extract_type" value="alipay" }selected="selected"{/eq}>支付宝</option>
                                 <option value="bank" {eq name="where.extract_type" value="bank"}selected="selected"{/eq}>银行卡</option>
+                                <option value="weixin" {eq name="where.extract_type" value="weixin"}selected="selected"{/eq}>微信</option>
                             </select>
                             <div class="input-group">
 
@@ -98,14 +99,18 @@
 
                             </td>
 
-                            <td class="text-center">
-                                姓名:{$vo.real_name}<br>
-                                {if condition="$vo['extract_type'] eq 'bank'"}
+                            <td class="text-left">
 
+                                {if condition="$vo['extract_type'] eq 'bank'"}
+                                姓名:{$vo.real_name}<br>
                                  银行卡号:{$vo.bank_code}
                                 <br/>
                                  银行开户地址:{$vo.bank_address}
+                                {elseif condition="$vo['extract_type'] eq 'weixin'"/}
+                                昵称:{$vo.nickname}<br>
+                                微信号号:{$vo.wechat}
                                 {else/}
+                                姓名:{$vo.real_name}<br>
                                   支付宝号:{$vo.alipay_code}
                                 {/if}
                             </td>