上传物流信息bug

This commit is contained in:
caoqianming 2022-02-25 09:51:59 +08:00
parent 830cf6f6a2
commit 1d86d9b2a4
3 changed files with 2 additions and 5 deletions

View File

@ -101,7 +101,7 @@ class SaleViewSet(CreateUpdateModelAMixin, ListModelMixin, RetrieveModelMixin, C
上传物流信息
"""
obj = self.get_object()
obj.ship_pic = request.data['path']
obj.ship_pic = request.data.get('path', None)
obj.save()
return Response()

View File

@ -79,7 +79,7 @@ class UpdateDevelop(APIView):
import os
# 更新后端
os.chdir('/home/lighthouse/hberp')
ret = os.popen('bash server_reload.sh')
ret = os.popen('sudo git pull && sudo service supervisor reload')
# 奇怪的处理
# os.chdir('/home/hberp/hb_server/vuedist')
# os.popen('cp index.html indexbak')

View File

@ -1,3 +0,0 @@
#!/bin/bash
cd /home/lighthouse/hberp
sudo git pull && sudo service supervisor reload