|
|
@@ -318,4 +318,22 @@ class OrderItemController extends BaseController
|
|
|
util::success($respond);
|
|
|
}
|
|
|
|
|
|
+ //修改花材的备注 ssh 20240514
|
|
|
+ public function actionUpdateItemRemark()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $id = $get['id'] ?? 0;
|
|
|
+ $remark = $get['remark'] ?? '';
|
|
|
+ $info = self::getById($id, true);
|
|
|
+ if (empty($info)) {
|
|
|
+ util::fail('没有找到');
|
|
|
+ }
|
|
|
+ if ($info->mainId != $this->mainId) {
|
|
|
+ util::fail('不是你的花材');
|
|
|
+ }
|
|
|
+ $info->remark = $remark;
|
|
|
+ $info->save();
|
|
|
+ util::complete();
|
|
|
+ }
|
|
|
+
|
|
|
}
|