|
@@ -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';
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|