Skip to content

Commit dd7e577

Browse files
committed
fixed
1 parent e9f87f7 commit dd7e577

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/Http/Controllers/AdminController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ public function setConfig(Request $request)
19791979

19801980
// 演示环境禁止修改特定配置项
19811981
if (env('APP_DEMO')) {
1982-
if (in_array($name, ['website_url', 'push_bear_send_key', 'push_bear_qrcode', 'youzan_client_id', 'youzan_client_secret', 'kdt_id', 'is_forbid_china', 'trimepay_appid', 'trimepay_appsecret', 'alipay_partner', 'alipay_key', 'alipay_transport', 'alipay_sign_type', 'alipay_private_key', 'alipay_public_key'])) {
1982+
if (in_array($name, ['website_url', 'min_rand_score', 'max_rand_score', 'push_bear_send_key', 'push_bear_qrcode', 'youzan_client_id', 'youzan_client_secret', 'kdt_id', 'is_forbid_china', 'trimepay_appid', 'trimepay_appsecret', 'alipay_partner', 'alipay_key', 'alipay_transport', 'alipay_sign_type', 'alipay_private_key', 'alipay_public_key'])) {
19831983
return Response::json(['status' => 'fail', 'data' => '', 'message' => '演示环境禁止修改该配置']);
19841984
}
19851985
}

resources/views/admin/system.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,12 +1843,12 @@ function setAlipayPublicKey() {
18431843
var max_rand_score = $("#max_rand_score").val();
18441844
18451845
if (parseInt(min_rand_score) < 0) {
1846-
layer.msg('最小积分小于0', {time:1000});
1846+
layer.msg('最小积分值不能小于0', {time:1000});
18471847
return ;
18481848
}
18491849
18501850
if (parseInt(min_rand_score) >= parseInt(max_rand_score)) {
1851-
layer.msg('最小积分必须小于最大积分', {time:1000});
1851+
layer.msg('最小积分值必须小于最大积分值', {time:1000});
18521852
return ;
18531853
}
18541854
@@ -1867,12 +1867,12 @@ function setAlipayPublicKey() {
18671867
var max_rand_score = $(this).val();
18681868
18691869
if (parseInt(max_rand_score) > 99999) {
1870-
layer.msg('最大积分不能大于99999', {time:1000});
1870+
layer.msg('最大积分值不能大于99999', {time:1000});
18711871
return ;
18721872
}
18731873
18741874
if (parseInt(min_rand_score) >= parseInt(max_rand_score)) {
1875-
layer.msg('最大积分必须大于最小积分', {time:1000});
1875+
layer.msg('最大积分值必须大于最小积分值', {time:1000});
18761876
return ;
18771877
}
18781878

0 commit comments

Comments
 (0)