|
@@ -110,6 +110,25 @@ class Multi
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+ # 提现
|
|
|
+ public function tixian($config, $merchant, $cash)
|
|
|
+ {
|
|
|
+ $this->config = $config;
|
|
|
+
|
|
|
+ $mid = $merchant['mid'];
|
|
|
+
|
|
|
+ //整理内容信息
|
|
|
+ $content = [
|
|
|
+ 'merNo' => $merchant['merno'],
|
|
|
+ 'payAmt' => $cash,
|
|
|
+ 'ps' => $merchant['name'] . '划付',
|
|
|
+ ];
|
|
|
+ Dever::log($content, 'yspay_huafu_tixian');
|
|
|
+ $result = $this->curl('202002', $content);
|
|
|
+
|
|
|
+ return 'ok';
|
|
|
+ }
|
|
|
+
|
|
|
protected function getOrderNum($order_num)
|
|
|
{
|
|
|
$where['order_num'] = $order_num . '_' . Dever::rand(8, 0);
|