wupengfei %!s(int64=2) %!d(string=hai) anos
pai
achega
3ca6a10901
Modificáronse 2 ficheiros con 17 adicións e 38 borrados
  1. 1 1
      .idea/workspace.xml
  2. 16 37
      application/api/controller/CloudWallet.php

+ 1 - 1
.idea/workspace.xml

@@ -205,7 +205,7 @@
       <workItem from="1663807608622" duration="4087000" />
       <workItem from="1663893226586" duration="1783000" />
       <workItem from="1664001111572" duration="6000" />
-      <workItem from="1664241269344" duration="10313000" />
+      <workItem from="1664241269344" duration="10824000" />
     </task>
     <task id="LOCAL-00001" summary=".">
       <created>1663731279977</created>

+ 16 - 37
application/api/controller/CloudWallet.php

@@ -49,8 +49,8 @@ class CloudWallet extends Base
     }
 
     /**
-     * @title 申请接入
-     * @desc 申请接入
+     * @title 申请接入[开户]
+     * @desc 申请接入[开户]
      * @author qc
      * @method POST
      * @tag 编辑信息
@@ -97,7 +97,7 @@ class CloudWallet extends Base
         ];
         $url = $this->cloud_url['apply'][$this->env];
         $result = LLianPayClient::sendRequest($url, json_encode($params));
-        $this->success('ok',['pay_result'=> json_decode($result,true)]);
+        $this->success('ok',json_decode($result,true));
     }
 
     /**
@@ -126,7 +126,7 @@ class CloudWallet extends Base
         ];
         $url =  $url = $this->cloud_url['userinfo'][$this->env];
         $result = LLianPayClient::sendRequest($url, json_encode($params));
-        $this->success('ok',['pay_result'=> json_decode($result,true)]);
+        $this->success('ok',json_decode($result,true));
     }
 
     /**
@@ -140,9 +140,17 @@ class CloudWallet extends Base
      * @param name:user_id type:int require:0 default:0 desc:用户id
      * @return name:ret_code type:string default:0 desc:0000:成功,其他异常
      * @return name:ret_msg type:string default:0 desc:请求结果描述
-     * @return name:user_status type:string default:0 desc:用户状态【NORMAL:正常,其他异常】
-     * @return name:bank_open_flag type:int default:0 desc:银行开户标识【0未开户,1已开户,2开户中】
-     * @return name:bank_account type:string default:0 desc:ACCP合作银行账户
+     * @return name:ret_msg type:string default:0 desc:请求结果描述
+     * @return name:acctinfo_list type:array default:0 desc:账户列表
+     * @return name:acctinfo_list.oid_acctno type:string default:0 desc:账户号
+     * @return name:acctinfo_list.acct_state type:int default:0 desc:账户状态【NORMAL:正常,其他异常】
+     * @return name:acctinfo_list.amt_balcur type:float default:0 desc:资金余额[单位:元]
+     * @return name:acctinfo_list.amt_balaval type:float default:0 desc:可用余额[单位:元]
+     * @return name:acctinfo_list.amt_balfrz type:float default:0 desc:冻结金额[单位:元]
+     * @return name:acctinfo_list.amt_lastbal type:float default:0 desc:昨日资金余额[单位:元]
+     * @return name:acctinfo_list.amt_lastaval type:float default:0 desc:昨日可用余额[单位:元]
+     * @return name:acctinfo_list.amt_lastfrz type:float default:0 desc:昨日冻结金额[单位:元]
+     *
      */
     public function getAcctInfo()
     {
@@ -156,41 +164,12 @@ class CloudWallet extends Base
         ];
         $url =  $url = $this->cloud_url['acctinfo'][$this->env];
         $result = LLianPayClient::sendRequest($url, json_encode($params));
-        $this->success('ok',['pay_result'=> json_decode($result,true)]);
+        $this->success('ok',json_decode($result,true));
     }
 
 
 
 
-    /**
-     * @title 开通钱包
-     * @desc 开通钱包
-     * @author qc
-     * @method POST
-     * @tag 编辑信息
-     * @url /api/Cloud_wallet/createWallet
-     * @header name:Authorization require:1 desc:Token
-     * @param name:user_id type:int require:0 default:0 desc:用户id
-     */
-    public function createWallet()
-    {
-        $user_id  = input('post.user_id');
-        $params = new TradeCreateParams();
-        $current = date("YmdHis");
-        $params->timestamp = $current;
-        $params->oid_partner = OID_PARTNER;
-        $params->user_id = $user_id;//LLianPayTest-En-User-12345;
-        $params->txn_seqno = get_order_sn();
-        $params->txn_time =$current;
-        $params->flag_chnl =10;
-        $params->user_type = 'INNERUSER';
-        $params->notify_url = '';//'https://test.lianlianpay.com/notify';
-        $params->return_url  = 'https://'.$_SERVER['HTTP_HOST'] . '/api/Notify/createWalletNotify';//'https://test.lianlianpay.com/return';
-
-
-    }
-
-
 }