- phpcbf 自动修复 3893 处格式问题 - 添加 phpcs.xml 排除不适用的规则 - 安全相关规则降级为 warning 保持可见 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
37 lines
1.6 KiB
PHP
Executable file
37 lines
1.6 KiB
PHP
Executable file
|
||
<blockquote class="alert alert-primary" style="background-color: gold; color: black;">
|
||
还没有账号?直接注册 <a style='margin-left:16px' href="https://payments.weithemes.com/" target="_blank" class="btn btn-primary">立即注册</a>
|
||
</blockquote>
|
||
|
||
<div class="card-header">支付设置</div>
|
||
<div class="card-body">
|
||
<form id="easypay-keepset-form">
|
||
<div class="form-group">
|
||
<label for="easypay_id">商户 ID:</label>
|
||
<input type="text" class="form-control" name="easypay_id" id="easypay_id" required placeholder="一般为5位或以上纯数字" value="<?php echo get_option( 'easypay_app_id' ); ?>" autocomplete="off">
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label for="easypay_key">商户秘钥:</label>
|
||
<input type="text" class="form-control" name="easypay_key" id="easypay_key" required placeholder="请输入商户秘钥" value="<?php echo get_option( 'easypay_app_key' ); ?>" autocomplete="off">
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label for="easypay_return_url">跳转地址:</label>
|
||
<input type="text" class="form-control" name="easypay_return_url" id="easypay_return_url" required value="
|
||
<?php
|
||
if ( get_option( 'easypay_return_url' ) == '' ) {
|
||
echo home_url() . '/my-account/orders';
|
||
} else {
|
||
echo get_option( 'easypay_return_url' );}
|
||
?>
|
||
">
|
||
<small class="form-text text-muted">用户支付成功后跳转到该地址</small>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<button type="submit" class="btn btn-primary">保存</button>
|
||
<button type="reset" class="btn btn-secondary">重置</button>
|
||
</div>
|
||
</form>
|
||
</div>
|