feat: 增加'receipts'字段更新功能和用户收货地址查询

This commit is contained in:
mkm 2024-07-22 17:03:16 +08:00
parent 841d3a632a
commit 02aa52cd3f
2 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,7 @@ class StoreCashFinanceFlowLogic extends BaseLogic
try {
StoreCashFinanceFlow::where('id', $params['id'])->update([
'file' => $params['file'],
'receipts' => $params['receipts']??0,
'status'=>1,
'admin_id'=>$params['admin_id'],
]);

View File

@ -92,6 +92,7 @@ class ProductLists extends BaseApiDataLists implements ListsSearchInterface, Lis
} elseif ($this->userId > 0) {
$uid = $this->userId;
}
$user_ship=-1;
if ($uid > 0) {
$user_ship = User::where('id', $uid)->value('user_ship');
if (in_array($user_ship, [4, 6, 7])) {