|
@@ -156,19 +156,6 @@ class UserExtract extends BaseModel
|
|
|
return self::edit(['status' => 1], $id);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 测试方法
|
|
|
- *
|
|
|
- */
|
|
|
- public function test()
|
|
|
- {
|
|
|
- $batch_name = '余额提现';//转账的名称
|
|
|
- $out_trade_no = time().rand(1000,9999);//单号
|
|
|
- $money = 1;//金额
|
|
|
- $openid = 'o81tN5bU3rqOSq62i5FqcOP-LUy8';//用户openid
|
|
|
- $this->tixian($batch_name,$out_trade_no,1,$openid);
|
|
|
- }
|
|
|
-
|
|
|
public static function tixian($batch_name,$out_trade_no,$money,$openid){
|
|
|
$url = 'https://api.mch.weixin.qq.com/v3/transfer/batches';
|
|
|
$pars = [];
|