调整APP链接地址
parent
84c0c9c378
commit
d765c076d2
|
|
@ -39,6 +39,9 @@ class App extends Form
|
|||
$appSettings = (array) Setting::where('key', 'app')->value('value');
|
||||
|
||||
$this->text('app_name', 'APP名称')->value($appSettings['app_name'] ?? '');
|
||||
$this->text('ios_link', '苹果应用市场')->value($appSettings['ios_link'] ?? '');
|
||||
$this->text('android_link', '商城应用市场')->value($appSettings['android_link'] ?? '');
|
||||
$this->text('merchant_link', '商家端下载地址')->value($appSettings['merchant_link'] ?? '');
|
||||
$this->divider();
|
||||
$this->text('search_hot_keys', '搜索热词(英文半角逗号隔开)')->value($appSettings['search_hot_keys'] ?? '');
|
||||
$this->text('invite_uri', '分享邀请地址(链接)')->value($appSettings['invite_uri'] ?? '');
|
||||
|
|
|
|||
|
|
@ -33,7 +33,8 @@ class AppVersionController extends Controller
|
|||
//如果未传版本号,或者版本号为0,则返回最新的apk地址;
|
||||
if (empty($v)) {
|
||||
$res = [
|
||||
'link' => (string) $appVersion->apk_link,
|
||||
'link' => (string) app_settings('app.'.$cate.'_link'),
|
||||
// 'link' => (string) $appVersion->apk_link,
|
||||
];
|
||||
} elseif ($appVersion->v > ($v+1)) {//如果版本号差异大于1,则强制更新APK
|
||||
$res = [
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@ class AppSettingSeeder extends Seeder
|
|||
'app'=> [
|
||||
'value'=> [
|
||||
'app_name' => '子春生',
|
||||
'ios_link' => '',
|
||||
'android_link' => '',
|
||||
'merchant_link' => '',
|
||||
'order_payment_expires_at' => 1800,
|
||||
'order_auto_complete_days' => 7,
|
||||
'sale_after_expire_days' => 7,
|
||||
|
|
|
|||
Loading…
Reference in New Issue