feat: add branded tutorials and display-only plan device settings
This commit is contained in:
1 parent
4f48e61a2c
commit
cd117604a3
126 files changed
+1197
-9
No files matched your search
@@ -90,7 +90,8 @@ class PlanController extends Controller
|
||||
$updateData = $request->only([
|
||||
'show',
|
||||
'renew',
|
||||
'sell'
|
||||
'sell',
|
||||
'display_device_limit'
|
||||
]);
|
||||
|
||||
$plan = Plan::find($request->input('id'));
|
||||
@@ -98,6 +99,10 @@ class PlanController extends Controller
|
||||
return $this->fail([400202, '该订阅不存在']);
|
||||
}
|
||||
|
||||
$request->validate([
|
||||
'display_device_limit' => 'sometimes|nullable|integer|min:0|max:4294967295',
|
||||
]);
|
||||
|
||||
try {
|
||||
$plan->update($updateData);
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in new issue
Block a user