|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace ghs\controllers;
|
|
|
|
|
|
+use bizGhs\modify\classes\ModifyClass;
|
|
|
use Yii;
|
|
|
use common\components\util;
|
|
|
|
|
|
@@ -13,7 +14,24 @@ class ModifyController extends BaseController
|
|
|
//添加修改记录 ssh 20240502
|
|
|
public function actionAdd()
|
|
|
{
|
|
|
-
|
|
|
+ $post = Yii::$app->request->post();
|
|
|
+ $modifyName = $post['modifyName'] ?? '';
|
|
|
+ if (empty($modifyName)) {
|
|
|
+ $modifyName = date("mdHIs");
|
|
|
+ }
|
|
|
+ $data = $post['data'] ?? '';
|
|
|
+ if (!empty($data)) {
|
|
|
+ $arr = json_decode($data, true);
|
|
|
+ print_r($arr);die;
|
|
|
+ $mData = [
|
|
|
+ 'name' => $modifyName,
|
|
|
+ 'mainId' => $this->mainId,
|
|
|
+ 'inTurn' => 100,
|
|
|
+ ];
|
|
|
+ $info = ModifyClass::add($mData, true);
|
|
|
+ $returnId = $info->id ?? 0;
|
|
|
+ }
|
|
|
+ util::complete();
|
|
|
}
|
|
|
|
|
|
}
|