|
|
@@ -11,6 +11,21 @@ use Yii;
|
|
|
class XjController extends BaseController
|
|
|
{
|
|
|
|
|
|
+ //修改多颜色名称 ssh 20220107
|
|
|
+ public function actionChangeXjName()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $id = $get['id'] ?? 0;
|
|
|
+ $name = $get['name'] ?? '';
|
|
|
+ $xj = XjClass::getById($id, true);
|
|
|
+ if (empty($xj) || $xj->mainId != $this->mainId) {
|
|
|
+ util::fail('修改失败');
|
|
|
+ }
|
|
|
+ $xj->name = $name;
|
|
|
+ $xj->save();
|
|
|
+ util::complete('修改成功');
|
|
|
+ }
|
|
|
+
|
|
|
//取出所有小菊 ssh 20210904
|
|
|
public function actionGetAllXj()
|
|
|
{
|