modified 不再实时刷新APPSecret

This commit is contained in:
zhaoxiang 2019-10-18 15:44:17 +08:00
parent 8c9a9a894e
commit ee742de7e2

View File

@ -85,14 +85,7 @@ class App extends Base {
* @return array
*/
public function refreshAppSecret() {
$id = $this->request->get('id', 0);
$data['app_secret'] = Strs::randString(32);
if ($id) {
$res = AdminApp::update($data, ['id' => $id]);
if ($res === false) {
return $this->buildFailed(ReturnCode::DB_SAVE_ERROR);
}
}
return $this->buildSuccess($data);
}