Merge pull request '修改默认值' (#32) from dev into main

Reviewed-on: #32
This commit is contained in:
mkm 2024-07-06 09:52:05 +08:00
commit 6df05f4139

View File

@ -116,7 +116,7 @@ class ProductLists extends BaseAdminDataLists implements ListsSearchInterface, L
} }
public function extend() public function extend()
{ {
$off_activity = Config::where('name', 'off_activity')->value('value'); // $off_activity = Config::where('name', 'off_activity')->value('value');
// if($off_activity==1){ // if($off_activity==1){
// $data=[ // $data=[
// 'off_activity' => $off_activity, // 'off_activity' => $off_activity,
@ -125,7 +125,7 @@ class ProductLists extends BaseAdminDataLists implements ListsSearchInterface, L
// ]; // ];
// }else{ // }else{
$data=[ $data=[
'off_activity' => $off_activity, 'off_activity' => 0,
'price' => 'price', 'price' => 'price',
'op_price' => 'price', 'op_price' => 'price',
]; ];