-
Notifications
You must be signed in to change notification settings - Fork 983
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request !3 from 白书科技/feat/v493
- Loading branch information
Showing
30 changed files
with
260 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Qsnh/meedu. | ||
* | ||
* (c) 杭州白书科技有限公司 | ||
*/ | ||
|
||
namespace App\Constant; | ||
|
||
class ConfigConstant | ||
{ | ||
|
||
public const PRIVATE_MASK = '************'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ | |
|
||
class MeEdu | ||
{ | ||
const VERSION = 'v4.9.2'; | ||
const VERSION = 'v4.9.3'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Qsnh/meedu. | ||
* | ||
* (c) 杭州白书科技有限公司 | ||
*/ | ||
|
||
namespace App\Meedu\ServiceV2\Models; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class AppConfig extends Model | ||
{ | ||
|
||
protected $table = 'app_config'; | ||
|
||
protected $fillable = [ | ||
'group', 'name', 'field_type', 'sort', 'default_value', 'key', 'value', 'is_private', | ||
'option_value', 'help', 'is_show', | ||
]; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Qsnh/meedu. | ||
* | ||
* (c) 杭州白书科技有限公司 | ||
*/ | ||
|
||
namespace App\Meedu\UpgradeLog; | ||
|
||
use App\Meedu\ServiceV2\Models\AppConfig; | ||
|
||
class UpgradeV493 | ||
{ | ||
|
||
public static function handle() | ||
{ | ||
self::renameAppConfig(); | ||
} | ||
|
||
private static function renameAppConfig() | ||
{ | ||
AppConfig::query()->where('key', 'pay.alipay.ali_public_key')->update([ | ||
'name' => '支付宝公钥', | ||
'sort' => 30, | ||
'help' => '', | ||
]); | ||
AppConfig::query()->where('key', 'pay.alipay.private_key')->update([ | ||
'name' => '应用私钥', | ||
'sort' => 35, | ||
'help' => '', | ||
]); | ||
} | ||
|
||
} |
Oops, something went wrong.