- 网页授权redirect_uri,变量拼接返回后缺少参数,但是链接写死返回就正常
网页授权redirect_uri,变量拼接返回后缺少参数,但是链接写死返回就正常 [图片] [图片]
2021-12-30 - api 如何创建满减活动,只看到了创建代金券
就是标题
2020-12-29 - api v3 创建代金券 返回 可用商户不符合规则
$tid = date('YmdHis').rand(1000,9999); $resp = $client->request('POST', 'https://api.mch.weixin.qq.com/v3/marketing/favor/coupon-stocks', [ 'json' => [ // JSON请求体 'stock_name' => '彤彤爸创建的券', "comment"=>"体验券", 'belong_merchant' => $merchantId, 'available_begin_time'=>date('Y-m-d',time()+86400).'T'.date('H:i:s').'.120+08:00', 'available_end_time'=>date('Y-m-d',time()+2*86400).'T'.date('H:i:s').'.120+08:00', 'stock_use_rule'=>array( 'max_coupons'=>10, 'max_amount'=>10, 'max_coupons_per_user'=>1, 'natural_person_limit'=>true, 'prevent_api_abuse'=>true ), 'coupon_use_rule'=>array( 'coupon_available_time'=>array( 'second_day_available'=>false, 'available_time_after_receive'=>30 ), 'available_merchants'=>array( $merchantId ), 'fixed_normal_coupon'=>array( 'coupon_amount'=>1, 'transaction_minimum'=>10 ) ), 'trade_type'=>['OTHER'], 'combine_use'=>false, 'no_cash'=>true, 'stock_type'=>'NORMAL', 'out_request_no'=>$tid ], 'headers' => [ 'Accept' => 'application/json' ] ]);
2020-12-26