|
@@ -63,6 +63,10 @@ class CloudWallet extends Base
|
|
'https://accpgw-ste.lianlianpay-inc.com/v1/cashier/paycreate',//测试环境
|
|
'https://accpgw-ste.lianlianpay-inc.com/v1/cashier/paycreate',//测试环境
|
|
'https://accpgw.lianlianpay.com/v1/cashier/paycreate',//生产环境
|
|
'https://accpgw.lianlianpay.com/v1/cashier/paycreate',//生产环境
|
|
],
|
|
],
|
|
|
|
+ 'acctserial'=>[
|
|
|
|
+ 'https://accpapi-ste.lianlianpay-inc.com/v1/acctmgr/query-acctserial',//测试环境
|
|
|
|
+ 'https://accpapi.lianlianpay.com/v1/acctmgr/query-acctserial',//生产环境
|
|
|
|
+ ],
|
|
];
|
|
];
|
|
public function initialize(){
|
|
public function initialize(){
|
|
parent::initialize();
|
|
parent::initialize();
|
|
@@ -336,6 +340,51 @@ class CloudWallet extends Base
|
|
$this->success('ok',json_decode($result,true));
|
|
$this->success('ok',json_decode($result,true));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @title 获取钱包流水
|
|
|
|
+ * @desc 获取钱包流水
|
|
|
|
+ * @author qc
|
|
|
|
+ * @method GET
|
|
|
|
+ * @tag 编辑信息
|
|
|
|
+ * @url /api/Cloud_wallet/getAcctSerial
|
|
|
|
+ * @header name:Authorization require:1 desc:Token
|
|
|
|
+ * @param name:user_id type:int require:0 default:0 desc:用户id
|
|
|
|
+ * @param name:page type:int require:0 default:1 desc:页数
|
|
|
|
+ * @param name:page_num type:int require:0 default:10 desc:每页数量[此处最大是10,默认10]
|
|
|
|
+ * @param name:flag_dc type:int require:0 default:CREDIT desc:出入账标识[DEBIT:出账 CREDIT:入账]
|
|
|
|
+ * @param name:acct_type type:string require:0 default:USEROWN_PSETTLE desc:账号类型[USEROWN_PSETTLE:用户自有待结算账户,USEROWN_AVAILABLE:用户自有可用账户]
|
|
|
|
+
|
|
|
|
+ * @return name:ret_code type:string default:0 desc:0000:成功,其他异常
|
|
|
|
+ * @return name:ret_msg type:string default:0 desc:请求结果描述
|
|
|
|
+ * @return name:random_key type:string default:0 desc:随机因子key,有效期30分钟
|
|
|
|
+ * @return name:random_value type:string default:0 desc:随机因子值,有效期30分钟
|
|
|
|
+ */
|
|
|
|
+ public function getAcctSerial()
|
|
|
|
+ {
|
|
|
|
+ $user_id = $this->uid;
|
|
|
|
+ $current = date("YmdHis");
|
|
|
|
+ $acct_type = input('acct_type','USEROWN_PSETTLE');
|
|
|
|
+ $flag_dc = input('flag_dc','CREDIT');
|
|
|
|
+ $page_no = input('page',1);
|
|
|
|
+ $page_size = input('page_num',10);
|
|
|
|
+ $params = [
|
|
|
|
+ 'timestamp' => $current,
|
|
|
|
+ 'oid_partner' => OID_PARTNER,
|
|
|
|
+ 'user_id' => $this->prefix.$user_id,
|
|
|
|
+ 'acct_type' => $acct_type,
|
|
|
|
+ 'date_start' => date("YmdHis",strtotime('-365 days')),
|
|
|
|
+ 'date_end' => $current,
|
|
|
|
+ 'flag_dc' => $flag_dc,
|
|
|
|
+ 'page_no' => $page_no,
|
|
|
|
+ 'page_size' => $page_size,
|
|
|
|
+ ];
|
|
|
|
+ $url = $url = $this->cloud_url['acctserial'][$this->env];
|
|
|
|
+ $result = LLianPayClient::sendRequest($url, json_encode($params,JSON_UNESCAPED_UNICODE));
|
|
|
|
+ $this->success('ok',json_decode($result,true));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|