上传物流信息bug
This commit is contained in:
parent
830cf6f6a2
commit
1d86d9b2a4
|
@ -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()
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
cd /home/lighthouse/hberp
|
||||
sudo git pull && sudo service supervisor reload
|
Loading…
Reference in New Issue