1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- // +----------------------------------------------------------------------
- // | likeshop开源商城系统
- // +----------------------------------------------------------------------
- // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
- // | gitee下载:https://gitee.com/likeshop_gitee
- // | github下载:https://github.com/likeshop-github
- // | 访问官网:https://www.likeshop.cn
- // | 访问社区:https://home.likeshop.cn
- // | 访问手册:http://doc.likeshop.cn
- // | 微信公众号:likeshop技术社区
- // | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
- // | likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
- // | 禁止对系统程序代码以任何目的,任何形式的再发布
- // | likeshop团队版权所有并拥有最终解释权
- // +----------------------------------------------------------------------
- // | author: likeshop.cn.team
- // +----------------------------------------------------------------------
- namespace app\common\server\DouGong\pay;
-
- use app\common\server\DouGong\BaseRequest;
-
- /**
- * @notes 微信商户配置
- * https://paas.huifu.com/partners/api/#/shgl/shjj/api_shjj_wxshpz
- * author lbzy
- * @datetime 2023-10-26 17:12:11
- * @class MerchantBusinessConfig
- * @package app\common\server\DouGong\pay
- */
- class MerchantBusinessConfig extends BaseRequest
- {
- protected $request_uri = '/v2/merchant/busi/config';
-
- protected function initialize()
- {
- // 请求流水号
- $this->request_data['data']['req_seq_id'] = time() . mt_rand(100000, 999999);
- // 请求日期req_date
- $this->request_data['data']['req_date'] = date("Ymd");
- // 商户id
- $this->request_data['data']['huifu_id'] = $this->config['huifu_id'];
- // 业务开通类型
- $this->request_data['data']['fee_type'] = '01';
- // 公众号
- if (isset($this->params['oa_app_id'])) {
- $this->request_data['data']['wx_woa_app_id'] = $this->params['oa_app_id'];
- // $this->request_data['data']['wx_woa_path'] = request()->domain() . '/';
- }
- // 小程序
- if (isset($this->params['mnp_app_id'])) {
- $this->request_data['data']['wx_applet_app_id'] = $this->params['mnp_app_id'];
- }
- }
-
- function getConfigResult() : array
- {
- return [
- 'code' => intval($this->request_success),
- 'msg' => $this->request_message,
- 'show' => 0,
- 'data' => [],
- ];
- }
- }
|