Commit 9064e465 by 朱继来

添加日志

parent d8d6049f
Showing with 7 additions and 1 deletions
......@@ -16,6 +16,7 @@ use App\Model\OrderExtendModel;
use App\Model\OrderItemsModel;
use App\Model\OrderItemsTrackModel;
use App\Model\UserSampleApplyModel;
use App\Model\OrderActionLogModel;
use App\Model\UserSampleInviteModel;
use App\Model\UserGroupModel;
use App\Model\BrandBlackListModel;
......@@ -377,13 +378,18 @@ class ApiController extends Controller
$erp_sn = $request->input('erp_sn');
$OrderExtendModel = new OrderExtendModel;
$OrderActionLogModel = new OrderActionLogModel;
$old_erp_sn = $OrderExtendModel->where('order_id', $order_id)->value('erp_sn');
$res = $OrderExtendModel->where('order_id', $order_id)->update(['erp_sn' => $erp_sn]);
if ($res === false) {
$this->Export(-1, '编辑ERP单号失败');
}
$OrderActionLogModel->addLog($order_id, $request->user->userId, 2, '编辑ERP单号,修改前:'.$old_erp_sn);
$this->Export(0, '编辑ERP单号成功');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment