|
|
@@ -23,12 +23,12 @@ use Yii;
|
|
|
class CustomController extends BaseController
|
|
|
{
|
|
|
|
|
|
- //修改散客身份 ssh 20230216
|
|
|
- public function actionChangePerson()
|
|
|
+ //修改花店散客身份 ssh 20230216
|
|
|
+ public function actionChangeIsHd()
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
$id = $get['id'] ?? 0;
|
|
|
- $person = $get['person'] ?? 0;
|
|
|
+ $isHd = $get['isHd'] ?? 1;
|
|
|
$custom = CustomClass::getById($id, true);
|
|
|
if (empty($custom) || $custom->ownMainId != $this->mainId) {
|
|
|
util::fail('修改失败');
|
|
|
@@ -38,9 +38,9 @@ class CustomController extends BaseController
|
|
|
if (empty($ghs)) {
|
|
|
util::fail('修改失败了');
|
|
|
}
|
|
|
- $ghs->person = $person;
|
|
|
+ $ghs->isHd = $isHd;
|
|
|
$ghs->save();
|
|
|
- $custom->person = $person;
|
|
|
+ $custom->isHd = $isHd;
|
|
|
$custom->save();
|
|
|
util::complete('修改成功');
|
|
|
}
|