feat(StoreOrderController): 添加设置订单店铺功能
- 新增 setSystemStore 方法,用于更新订单的店铺信息 - 更新 StoreOrder 和 StoreOrderCartInfo 表中的 store_id 字段 - 返回成功提示信息
This commit is contained in:
parent
30f1b3ec61
commit
3d05c5940f
@ -281,4 +281,15 @@ class StoreOrderController extends BaseAdminController
|
|||||||
$file_path = (new Beforehand())->export($data, $system_store);
|
$file_path = (new Beforehand())->export($data, $system_store);
|
||||||
return $this->success('导出成功', ['url' => $file_path]);
|
return $this->success('导出成功', ['url' => $file_path]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出标签
|
||||||
|
*/
|
||||||
|
public function setSystemStore()
|
||||||
|
{
|
||||||
|
$params = $this->request->post();
|
||||||
|
StoreOrder::where('id',$params['id'])->update(['store_id'=>$params['store_id']]);
|
||||||
|
StoreOrderCartInfo::where('oid',$params['id'])->update(['store_id'=>$params['store_id']]);
|
||||||
|
return $this->success('设置成功');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user