@@ -21,7 +21,7 @@ class GoodsFeeStandardsLists extends BaseWorkerDataLists implements ListsSearchI
*/
public function setSearch(): array
{
- if($this->params['work_id']??0){
+ if(isset($this->params['work_id'])){
$rechargeOrder = RechargeOrder::with(['orderGoods'])->where('work_id',$this->params['work_id'])->where('payment_type','IN',[0,1])->find()->toArray();
$this->params['goods_id'] = $rechargeOrder['orderGoods'][0]['goods_id']??0;
}
@@ -36,6 +36,6 @@ class GoodsFeeStandardsValidate extends BaseValidate
public function sceneStandards()
- return $this->only(['work_id']);
+ return $this->only(['goods_id']);