|
|
@@ -126,6 +126,13 @@ class ToolController extends BaseController
|
|
|
echo '清空成功'.PHP_EOL;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 清空缓存
|
|
|
+ */
|
|
|
+ public function actionClearConfigCache() {
|
|
|
+ \Yii::$app->cache->delete(Cache::SYSTEM_CONFIG_KEY);
|
|
|
+ echo '清空成功: ' . Cache::SYSTEM_CONFIG_KEY . PHP_EOL;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 重置接点和推荐数量
|
|
|
@@ -172,8 +179,10 @@ class ToolController extends BaseController
|
|
|
* 自动送钉钉提醒
|
|
|
*/
|
|
|
public function actionAutoSendDingTalkTable() {
|
|
|
+ $ip = 'https://ng-frontend-api.elken.com';
|
|
|
+// $ip = 'http://16.163.228.151:8026';
|
|
|
$curl = curl_init();
|
|
|
- curl_setopt($curl, CURLOPT_URL, 'http://16.163.228.151:8026/v1/site/send-notice');
|
|
|
+ curl_setopt($curl, CURLOPT_URL, $ip . '/v1/site/send-notice');
|
|
|
curl_setopt($curl, CURLOPT_TIMEOUT, 5000);
|
|
|
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
|
|
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
|