作者 chencheng

0531-10

... ... @@ -448,7 +448,7 @@ class Wechat extends Api
// 发放佣金 企业付款到零钱
public function grant_commission($pid=0,$order_id=0){
//测试
//测试 https://coupon.xp.yn.cn/api/v1/wechat/grant_commission
$order_id = 14;
try{
$send_result = 0;
... ... @@ -466,6 +466,8 @@ class Wechat extends Api
'amount' => 1, // 企业付款金额,单位为分
'desc' => '分销佣金', // 企业付款操作说明信息。必填
]);
return json($result);
die;
if($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS'){
//记录佣金表 后台没有配置
$send_result = 1;
... ... @@ -487,6 +489,7 @@ class Wechat extends Api
// 发放红包
public function grant_red_packets($pid=0,$order_id=0){
try{
//测试 https://coupon.xp.yn.cn/api/v1/wechat/grant_red_packets
$order_id = 14;
$verification_order = Db::name('verification_order')->where(['id'=>$order_id])->find();
$app = WehcatModule::getInstance()->initWechatPay();
... ...