|
|
@@ -6,6 +6,7 @@ use biz\shop\services\ShopAdminService;
|
|
|
use bizHd\admin\classes\AdminClass;
|
|
|
use bizHd\admin\services\AdminService;
|
|
|
use bizHd\wx\services\WxOpenService;
|
|
|
+use common\components\noticeUtil;
|
|
|
use common\components\util;
|
|
|
use Yii;
|
|
|
use yii\helpers\Json;
|
|
|
@@ -310,4 +311,18 @@ class AdminController extends BaseController
|
|
|
util::success($data);
|
|
|
}
|
|
|
|
|
|
+ //修改保存安卓clientId
|
|
|
+ public function actionReplaceClientId()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $id = $get['id'] ?? '';
|
|
|
+ if (empty($id)) {
|
|
|
+ util::success(['returnStatus' => 'FAILURE']);
|
|
|
+ }
|
|
|
+ $this->admin->clientId = $id;
|
|
|
+ $this->admin->save();
|
|
|
+ noticeUtil::push("保存客户端ID:" . $id, '15280215347');
|
|
|
+ util::complete();
|
|
|
+ }
|
|
|
+
|
|
|
}
|