generated from liutk/owl-admin-base
api LedgerController
parent
d24fc3065a
commit
c02ea6103e
|
|
@ -28,7 +28,7 @@ class LedgerController extends Controller
|
|||
}
|
||||
|
||||
// 是否是彩票店数据上报
|
||||
$isLotteryLedger = $user->store->isLotteryStore();
|
||||
$isLotteryLedger = $user->store?->isLotteryStore();
|
||||
|
||||
$validated = $request->validate(
|
||||
rules: [
|
||||
|
|
@ -199,7 +199,7 @@ class LedgerController extends Controller
|
|||
|
||||
$items = [];
|
||||
|
||||
if ($user->store->isLotteryStore()) {
|
||||
if ($user->store?->isLotteryStore()) {
|
||||
/** @var \Illuminate\Database\Eloquent\Collection */
|
||||
$lotteryTypes = Keyword::filter(['parent_key' => 'lottery_type'])
|
||||
->oldest('sort')
|
||||
|
|
|
|||
Loading…
Reference in New Issue