|
|
@@ -70,17 +70,14 @@ class SystemClearData extends AuthController
|
|
|
return $this->attachmentData();
|
|
|
break;
|
|
|
case 'article':
|
|
|
- return $this->articledata();
|
|
|
+ return $this->articleData();
|
|
|
break;
|
|
|
case 'system':
|
|
|
- return $this->systemdata();
|
|
|
+ return $this->systemData();
|
|
|
break;
|
|
|
case 'user':
|
|
|
return $this->userRelevantData();
|
|
|
break;
|
|
|
- case 'wechatuser':
|
|
|
- return $this->wechatuserData();
|
|
|
- break;
|
|
|
default:
|
|
|
return app('json')->fail(100100);
|
|
|
}
|
|
|
@@ -122,14 +119,62 @@ class SystemClearData extends AuthController
|
|
|
public function userRelevantData()
|
|
|
{
|
|
|
$this->services->clearData([
|
|
|
- 'user_recharge', 'user_address', 'user_bill', 'user_enter', 'user_extract',
|
|
|
- 'user_notice', 'user_notice_see', 'wechat_message', 'store_visit',
|
|
|
- 'store_coupon_user', 'store_coupon_issue_user', 'store_bargain_user', 'store_bargain_user_help',
|
|
|
- 'store_product_reply', 'store_product_cate', 'user_sign',
|
|
|
- 'user_level', 'user_group', 'user_visit', 'user_label', 'user_label_relation', 'user_label_relation',
|
|
|
- 'store_product_relation', 'sms_record', 'system_file', 'system_store', 'system_store_staff',
|
|
|
- 'member_card', 'member_card_batch', 'member_ship', 'qrcode', 'user_brokerage_frozen', 'user_invoice'
|
|
|
-
|
|
|
+ 'agent_level_task_record',
|
|
|
+ 'member_card',
|
|
|
+ 'member_card_batch',
|
|
|
+ 'capital_flow',
|
|
|
+ 'delivery_service',
|
|
|
+ 'division_agent_apply',
|
|
|
+ 'luck_lottery_record',
|
|
|
+ 'other_order',
|
|
|
+ 'other_order_status',
|
|
|
+ 'qrcode',
|
|
|
+ 'sms_record',
|
|
|
+ 'store_bargain_user',
|
|
|
+ 'store_bargain_user_help',
|
|
|
+ 'store_cart',
|
|
|
+ 'store_coupon_issue_user',
|
|
|
+ 'store_coupon_user',
|
|
|
+ 'store_integral_order',
|
|
|
+ 'store_integral_order_status',
|
|
|
+ 'store_order',
|
|
|
+ 'store_order_cart_info',
|
|
|
+ 'store_order_economize',
|
|
|
+ 'store_order_invoice',
|
|
|
+ 'store_order_refund',
|
|
|
+ 'store_order_status',
|
|
|
+ 'store_pink',
|
|
|
+ 'store_product_relation',
|
|
|
+ 'store_product_reply',
|
|
|
+ 'store_service',
|
|
|
+ 'store_service_feedback',
|
|
|
+ 'store_service_log',
|
|
|
+ 'store_service_record',
|
|
|
+ 'store_visit',
|
|
|
+ 'system_store_staff',
|
|
|
+ 'user',
|
|
|
+ 'user_address',
|
|
|
+ 'user_bill',
|
|
|
+ 'user_brokerage',
|
|
|
+ 'user_brokerage_frozen',
|
|
|
+ 'user_cancel',
|
|
|
+ 'user_enter',
|
|
|
+ 'user_extract',
|
|
|
+ 'user_friends',
|
|
|
+ 'user_group',
|
|
|
+ 'user_invoice',
|
|
|
+ 'user_label',
|
|
|
+ 'user_label_relation',
|
|
|
+ 'user_level',
|
|
|
+ 'user_money',
|
|
|
+ 'user_notice',
|
|
|
+ 'user_notice_see',
|
|
|
+ 'user_recharge',
|
|
|
+ 'user_search',
|
|
|
+ 'user_sign',
|
|
|
+ 'user_spread',
|
|
|
+ 'user_visit',
|
|
|
+ 'wechat_user',
|
|
|
], true);
|
|
|
$this->services->delDirAndFile('./public/uploads/store/comment');
|
|
|
return app('json')->success(100046);
|
|
|
@@ -142,10 +187,110 @@ class SystemClearData extends AuthController
|
|
|
public function storeData()
|
|
|
{
|
|
|
$this->services->clearData([
|
|
|
- 'store_coupon_issue', 'store_bargain', 'store_combination', 'store_product_attr',
|
|
|
- 'store_product_attr_result', 'store_product_cate', 'store_product_attr_value', 'store_product_description',
|
|
|
- 'store_product_rule', 'store_seckill', 'store_product', 'store_visit', 'store_product_log', 'category', 'delivery_service',
|
|
|
- 'live_anchor', 'live_goods', 'live_room', 'live_room_goods', 'store_product_coupon'
|
|
|
+ 'eb_agent_level',
|
|
|
+ 'eb_agent_level_task',
|
|
|
+ 'eb_agent_level_task_record',
|
|
|
+ 'eb_article',
|
|
|
+ 'eb_article_category',
|
|
|
+ 'eb_article_content',
|
|
|
+ 'eb_auxiliary',
|
|
|
+ 'eb_cache',
|
|
|
+ 'eb_capital_flow',
|
|
|
+ 'eb_category',
|
|
|
+ 'eb_delivery_service',
|
|
|
+ 'eb_division_agent_apply',
|
|
|
+ 'eb_live_anchor',
|
|
|
+ 'eb_live_goods',
|
|
|
+ 'eb_live_room',
|
|
|
+ 'eb_live_room_goods',
|
|
|
+ 'eb_luck_lottery',
|
|
|
+ 'eb_luck_lottery_record',
|
|
|
+ 'eb_luck_prize',
|
|
|
+ 'eb_member_card',
|
|
|
+ 'eb_member_card_batch',
|
|
|
+ 'eb_member_right',
|
|
|
+ 'eb_member_ship',
|
|
|
+ 'eb_message_system',
|
|
|
+ 'eb_other_order',
|
|
|
+ 'eb_other_order_status',
|
|
|
+ 'eb_qrcode',
|
|
|
+ 'eb_sms_record',
|
|
|
+ 'eb_store_advance',
|
|
|
+ 'eb_store_bargain',
|
|
|
+ 'eb_store_bargain_user',
|
|
|
+ 'eb_store_bargain_user_help',
|
|
|
+ 'eb_store_cart',
|
|
|
+ 'eb_store_category',
|
|
|
+ 'eb_store_combination',
|
|
|
+ 'eb_store_coupon_issue',
|
|
|
+ 'eb_store_coupon_issue_user',
|
|
|
+ 'eb_store_coupon_product',
|
|
|
+ 'eb_store_coupon_user',
|
|
|
+ 'eb_store_integral',
|
|
|
+ 'eb_store_integral_order',
|
|
|
+ 'eb_store_integral_order_status',
|
|
|
+ 'eb_store_order',
|
|
|
+ 'eb_store_order_cart_info',
|
|
|
+ 'eb_store_order_economize',
|
|
|
+ 'eb_store_order_invoice',
|
|
|
+ 'eb_store_order_refund',
|
|
|
+ 'eb_store_order_status',
|
|
|
+ 'eb_store_pink',
|
|
|
+ 'eb_store_product',
|
|
|
+ 'eb_store_product_attr',
|
|
|
+ 'eb_store_product_attr_result',
|
|
|
+ 'eb_store_product_attr_value',
|
|
|
+ 'eb_store_product_cate',
|
|
|
+ 'eb_store_product_coupon',
|
|
|
+ 'eb_store_product_description',
|
|
|
+ 'eb_store_product_log',
|
|
|
+ 'eb_store_product_relation',
|
|
|
+ 'eb_store_product_reply',
|
|
|
+ 'eb_store_product_rule',
|
|
|
+ 'eb_store_product_virtual',
|
|
|
+ 'eb_store_seckill',
|
|
|
+ 'eb_store_service',
|
|
|
+ 'eb_store_service_feedback',
|
|
|
+ 'eb_store_service_log',
|
|
|
+ 'eb_store_service_record',
|
|
|
+ 'eb_store_visit',
|
|
|
+ 'eb_system_file',
|
|
|
+ 'eb_system_log',
|
|
|
+ 'eb_system_notice',
|
|
|
+ 'eb_system_notice_admin',
|
|
|
+ 'eb_system_store',
|
|
|
+ 'eb_system_store_staff',
|
|
|
+ 'eb_user',
|
|
|
+ 'eb_user_address',
|
|
|
+ 'eb_user_bill',
|
|
|
+ 'eb_user_brokerage',
|
|
|
+ 'eb_user_brokerage_frozen',
|
|
|
+ 'eb_user_cancel',
|
|
|
+ 'eb_user_enter',
|
|
|
+ 'eb_user_extract',
|
|
|
+ 'eb_user_friends',
|
|
|
+ 'eb_user_group',
|
|
|
+ 'eb_user_invoice',
|
|
|
+ 'eb_user_label',
|
|
|
+ 'eb_user_label_relation',
|
|
|
+ 'eb_user_level',
|
|
|
+ 'eb_user_money',
|
|
|
+ 'eb_user_notice',
|
|
|
+ 'eb_user_notice_see',
|
|
|
+ 'eb_user_recharge',
|
|
|
+ 'eb_user_search',
|
|
|
+ 'eb_user_sign',
|
|
|
+ 'eb_user_spread',
|
|
|
+ 'eb_user_visit',
|
|
|
+ 'eb_wechat_key',
|
|
|
+ 'eb_wechat_media',
|
|
|
+ 'eb_wechat_message',
|
|
|
+ 'eb_wechat_news_category',
|
|
|
+ 'eb_wechat_qrcode',
|
|
|
+ 'eb_wechat_qrcode_cate',
|
|
|
+ 'eb_wechat_qrcode_record',
|
|
|
+ 'eb_wechat_reply',
|
|
|
+ 'eb_wechat_user',
|
|
|
], true);
|
|
|
return app('json')->success(100046);
|
|
|
}
|
|
|
@@ -166,8 +311,19 @@ class SystemClearData extends AuthController
|
|
|
*/
|
|
|
public function orderData()
|
|
|
{
|
|
|
- $this->services->clearData(['store_order', 'store_order_cart_info', 'store_order_status', 'store_pink',
|
|
|
- 'store_cart', 'store_order_status', 'other_order', 'other_order_status', 'store_order_invoice'
|
|
|
+ $this->services->clearData([
|
|
|
+ 'other_order',
|
|
|
+ 'other_order_status',
|
|
|
+ 'store_cart',
|
|
|
+ 'store_integral_order',
|
|
|
+ 'store_integral_order_status',
|
|
|
+ 'store_order',
|
|
|
+ 'store_order_cart_info',
|
|
|
+ 'store_order_economize',
|
|
|
+ 'store_order_invoice',
|
|
|
+ 'store_order_refund',
|
|
|
+ 'store_order_status',
|
|
|
+ 'store_pink',
|
|
|
], true);
|
|
|
return app('json')->success(100046);
|
|
|
}
|
|
|
@@ -179,7 +335,11 @@ class SystemClearData extends AuthController
|
|
|
public function kefuData()
|
|
|
{
|
|
|
$this->services->clearData([
|
|
|
- 'store_service', 'store_service_log', 'store_service_record', 'store_service_feedback', 'store_service_speechcraft'
|
|
|
+ 'store_service',
|
|
|
+ 'store_service_log',
|
|
|
+ 'store_service_record',
|
|
|
+ 'store_service_feedback',
|
|
|
+ 'store_service_speechcraft'
|
|
|
], true);
|
|
|
$this->services->delDirAndFile('./public/uploads/store/service');
|
|
|
return app('json')->success(100046);
|
|
|
@@ -192,8 +352,15 @@ class SystemClearData extends AuthController
|
|
|
public function wechatData()
|
|
|
{
|
|
|
$this->services->clearData([
|
|
|
- 'wechat_media', 'wechat_reply', 'cache', 'wechat_key',
|
|
|
- 'wechat_news_category'
|
|
|
+ 'cache',
|
|
|
+ 'wechat_key',
|
|
|
+ 'wechat_media',
|
|
|
+ 'wechat_message',
|
|
|
+ 'wechat_news_category',
|
|
|
+ 'wechat_qrcode',
|
|
|
+ 'wechat_qrcode_cate',
|
|
|
+ 'wechat_qrcode_record',
|
|
|
+ 'wechat_reply'
|
|
|
], true);
|
|
|
$this->services->delDirAndFile('./public/uploads/wechat');
|
|
|
return app('json')->success(100046);
|
|
|
@@ -206,38 +373,30 @@ class SystemClearData extends AuthController
|
|
|
public function attachmentData()
|
|
|
{
|
|
|
$this->services->clearData([
|
|
|
- 'system_attachment', 'system_attachment_category'
|
|
|
+ 'system_attachment',
|
|
|
+ 'system_attachment_category'
|
|
|
], true);
|
|
|
$this->services->delDirAndFile('./public/uploads/');
|
|
|
return app('json')->success(100046);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 清除微信用户
|
|
|
- * @return mixed
|
|
|
- */
|
|
|
- public function wechatuserData()
|
|
|
- {
|
|
|
- $this->services->clearData([
|
|
|
- 'user', 'wechat_user'
|
|
|
- ], true);
|
|
|
- return app('json')->success(100046);
|
|
|
- }
|
|
|
-
|
|
|
//清除内容分类
|
|
|
- public function articledata()
|
|
|
+ public function articleData()
|
|
|
{
|
|
|
$this->services->clearData([
|
|
|
- 'article_category', 'article', 'article_content'
|
|
|
+ 'article_category',
|
|
|
+ 'article',
|
|
|
+ 'article_content'
|
|
|
], true);
|
|
|
return app('json')->success(100046);
|
|
|
}
|
|
|
|
|
|
//清除系统记录
|
|
|
- public function systemdata()
|
|
|
+ public function systemData()
|
|
|
{
|
|
|
$this->services->clearData([
|
|
|
- 'system_notice_admin', 'system_log'
|
|
|
+ 'system_notice_admin',
|
|
|
+ 'system_log'
|
|
|
], true);
|
|
|
return app('json')->success(100046);
|
|
|
}
|