feat: 修改 OpurchaseclassController 中的 stream_update 方法

This commit is contained in:
mkm 2024-05-27 17:21:11 +08:00
parent 99a26c2ba6
commit 6024873844

View File

@ -158,8 +158,8 @@ class OpurchaseclassController extends BaseAdminController
*/
public function stream_update()
{
$id=$this->request->get('id');
$order_code=$this->request->get('order_code');
$id=$this->request->post('id');
$order_code=$this->request->post('order_code');
if($id){
Cashierclass::where('id',$id)->update(['is_stream'=>1,'stream_admin_id'=>$this->request->adminId,'stream_time'=>time()]);
return $this->success('更新成功');