Completed
Push — master ( 923967...193ed2 )
by Songda
20:45 queued 16:51
created

config/pay.php (2 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
return [
4
    'alipay' => [
5
        // 支付宝分配的 APPID
6
        'app_id' => '',
7
8
        // 支付宝异步通知地址
9
        'notify_url' => '',
10
11
        // 支付成功后同步通知地址
12
        'return_url' => '',
13
14
        // 阿里公共密钥,验证签名时使用
15
        'ali_public_key' => '',
16
17
        // 自己的私钥,签名时使用
18
        'private_key' => '',
19
20
        // optional,默认 warning;日志路径为:sys_get_temp_dir().'/logs/yansongda.pay.log'
21
        'log' => [
22
            'file' => storage_path('logs/alipay.log'),
23
        //     'level' => 'debug'
0 ignored issues
show
Unused Code Comprehensibility introduced by
50% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
24
        ],
25
26
        // optional,设置此参数,将进入沙箱模式
27
        // 'mode' => 'dev',
28
    ],
29
30
    'wechat' => [
31
        // 公众号 APPID
32
        'app_id' => '',
33
34
        // 小程序 APPID
35
        'miniapp_id' => '',
36
37
        // APP 引用的 appid
38
        'appid' => '',
39
40
        // 微信支付分配的微信商户号
41
        'mch_id' => '',
42
43
        // 微信支付异步通知地址
44
        'notify_url' => '',
45
46
        // 微信支付签名秘钥
47
        'key' => '',
48
49
        // 客户端证书路径,退款、红包等需要用到。请填写绝对路径,linux 请确保权限问题。pem 格式。
50
        'cert_client' => '',
51
52
        // 客户端秘钥路径,退款、红包等需要用到。请填写绝对路径,linux 请确保权限问题。pem 格式。
53
        'cert_key' => '',
54
55
        // optional,默认 warning;日志路径为:sys_get_temp_dir().'/logs/yansongda.pay.log'
56
        'log' => [
57
            'file' => storage_path('logs/wechat.log'),
58
        //     'level' => 'debug'
0 ignored issues
show
Unused Code Comprehensibility introduced by
50% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
59
        ],
60
61
        // optional
62
        // 'dev' 时为沙箱模式
63
        // 'hk' 时为东南亚节点
64
        // 'mode' => 'dev',
65
    ],
66
];
67