+
@@ -103,6 +104,12 @@
+
+
+{/block}
+{block name='script'}
+
+{/block}
\ No newline at end of file
diff --git a/crmeb/app/admin/view/record/record/chart_combination.php b/crmeb/app/admin/view/record/record/chart_combination.php
index 53124cab..633750d2 100644
--- a/crmeb/app/admin/view/record/record/chart_combination.php
+++ b/crmeb/app/admin/view/record/record/chart_combination.php
@@ -296,7 +296,6 @@
this.info();
this.getSalesList();
this.getProfityList();
- this.getLackList();
this.getTuiPriesList();
layList.laydate.render({
elem:this.$refs.date_time,
diff --git a/crmeb/app/admin/view/setting/system_config_tab/sonconfigtab.php b/crmeb/app/admin/view/setting/system_config_tab/sonconfigtab.php
index b1a3be74..c3eb3e84 100644
--- a/crmeb/app/admin/view/setting/system_config_tab/sonconfigtab.php
+++ b/crmeb/app/admin/view/setting/system_config_tab/sonconfigtab.php
@@ -155,7 +155,7 @@
-
+
|
diff --git a/crmeb/app/admin/view/widget/images.php b/crmeb/app/admin/view/widget/images.php
index 3cb297ae..8c6d17ac 100644
--- a/crmeb/app/admin/view/widget/images.php
+++ b/crmeb/app/admin/view/widget/images.php
@@ -203,9 +203,9 @@
//判断表单限制图片个数
if(typeof parent.$f != 'undefined'){
//已有图片个数
- var nowpics = parent.$f.getValue(parentinputname).length;
- //设置最大个数
- var maxlength = parent.$f.model()[parentinputname].props.maxLength;
+ var nowpics = parent.$f.getValue(parentinputname).length,
+ props = parent.$f.model()[parentinputname].props || {},
+ maxlength = props.maxLength || 0;
//已选图片个数
var selectlength = this.selectImages.length;
//还可以选择多少张
diff --git a/crmeb/app/api/ApiExceptionHandle.php b/crmeb/app/api/ApiExceptionHandle.php
index a4a7cde3..833f68d3 100644
--- a/crmeb/app/api/ApiExceptionHandle.php
+++ b/crmeb/app/api/ApiExceptionHandle.php
@@ -37,12 +37,21 @@ class ApiExceptionHandle extends Handle
{
// 添加自定义异常处理机制
if ($e instanceof DbException) {
- return app('json')->fail('数据获取失败');
+ return app('json')->fail('数据获取失败',[
+ 'file' => $e->getFile(),
+ 'message' => $e->getMessage(),
+ 'line' => $e->getLine(),
+ ]);
+ }else{
+ return app('json')->fail('系统出现异常',[
+ 'message' => $e->getMessage(),
+ 'file' => $e->getFile(),
+ 'code' => $e->getCode(),
+ 'line' => $e->getLine(),
+ 'trace' => $e->getTrace(),
+ 'previous' => $e->getPrevious(),
+ ]);
}
-
- // 其他错误交给系统处理
- if (env('APP_DEBUG'))
- return parent::render($request, $e);
}
}
\ No newline at end of file
diff --git a/crmeb/app/api/controller/AuthController.php b/crmeb/app/api/controller/AuthController.php
index 522f49e8..8bac919f 100644
--- a/crmeb/app/api/controller/AuthController.php
+++ b/crmeb/app/api/controller/AuthController.php
@@ -24,13 +24,26 @@ use think\facade\Session;
class AuthController
{
+ /**
+ * H5账号登陆
+ * @param Request $request
+ * @return mixed
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public function login(Request $request)
{
$user = User::where('account', $request->param('account'))->find();
- if (!$user || $user->pwd !== md5($request->param('password')))
+ if($user) {
+ if ($user->pwd !== md5($request->param('password')))
+ return app('json')->fail('账号或密码错误');
+ if ($user->pwd === md5(123456))
+ return app('json')->fail('请修改您的初始密码,再尝试登陆!');
+ }else{
return app('json')->fail('账号或密码错误');
-
+ }
if (!$user['status'])
return app('json')->fail('已被禁止,请联系管理员');
@@ -109,6 +122,7 @@ class AuthController
return app('json')->fail('验证码错误');
if(strlen(trim($password)) < 6 || strlen(trim($password)) > 16)
return app('json')->fail('密码必须是在6到16位之间');
+ if($password == '123456') return app('json')->fail('密码太过简单,请输入较为复杂的密码');
$registerStatus = User::register($account, $password, $spread);
if($registerStatus) return app('json')->success('注册成功');
return app('json')->fail(User::getErrorInfo('注册失败'));
@@ -135,6 +149,7 @@ class AuthController
return app('json')->fail('验证码错误');
if(strlen(trim($password)) < 6 || strlen(trim($password)) > 16)
return app('json')->fail('密码必须是在6到16位之间');
+ if($password == '123456') return app('json')->fail('密码太过简单,请输入较为复杂的密码');
$resetStatus = User::reset($account, $password);
if($resetStatus) return app('json')->success('修改成功');
return app('json')->fail(User::getErrorInfo('修改失败'));
@@ -186,10 +201,14 @@ class AuthController
return app('json')->fail('登录失败');
}
- /*
+ /**
* H5切换登陆
- *
- * */
+ * @param Request $request
+ * @return mixed
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public function switch_h5(Request $request){
$from = $request->post('from','wechat');
$user = $request->user();
@@ -240,11 +259,14 @@ class AuthController
return app('json')->fail('登录失败');
}
-
- /*
+ /**
* 绑定手机号
- *
- * */
+ * @param Request $request
+ * @return mixed
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public function binding_phone(Request $request){
list($phone,$captcha,$step) = UtilService::postMore([
['phone',''],
@@ -271,6 +293,8 @@ class AuthController
$userPhone = $userInfo->phone;
if(!$userInfo) return app('json')->fail('用户不存在');
if($userInfo->phone) return app('json')->fail('您的账号已经绑定过手机号码!');
+ if(User::where('phone',$phone)->where('user_type','<>','h5')->count())
+ return app('json')->success('此手机已经绑定,无法多次绑定!');
if(User::where('account',$phone)->where('phone',$phone)->where('user_type','h5')->find()){
if(!$step) return app('json')->success('H5已有账号是否绑定此账号上',['is_bind'=>1]);
$userInfo->phone = $phone;
diff --git a/crmeb/app/api/controller/BaiduController.php b/crmeb/app/api/controller/BaiduController.php
new file mode 100644
index 00000000..97087674
--- /dev/null
+++ b/crmeb/app/api/controller/BaiduController.php
@@ -0,0 +1,18 @@
+uid))
unset($menusInfo[$key]);
+ if(!StoreService::orderServiceStatus($user->uid) && $value['wap_url'] === '/order/order_cancellation'){
+ unset($menusInfo[$key]);
+ }
}
return app('json')->successful(['routine_my_menus'=>$menusInfo]);
}
@@ -129,7 +132,7 @@ class PublicController
],$request);
if(!$data['filename']) return app('json')->fail('参数有误');
if(Cache::has('start_uploads_'.$request->uid()) && Cache::get('start_uploads_'.$request->uid()) >= 100) return app('json')->fail('非法操作');
- $res = UploadService::image($data['filename'],'store/comment');
+ $res = UploadService::getInstance()->setUploadPath('store/comment')->image($data['filename']);
if(!is_array($res)) return app('json')->fail($res);
SystemAttachment::attachmentAdd($res['name'], $res['size'], $res['type'], $res['dir'], $res['thumb_path'],1, $res['image_type'], $res['time'], 2);
if(Cache::has('start_uploads_'.$request->uid()))
@@ -177,13 +180,35 @@ class PublicController
return app('json')->fail();
}
- /*
+ /**
* 记录用户分享
- * @return json
- * */
+ * @param Request $request
+ * @return mixed
+ */
public function user_share(Request $request){
- return app('json')->successful(UserBill::setUserShare($request->uid));
+ return app('json')->successful(UserBill::setUserShare($request->uid()));
+ }
+
+ /**
+ * 获取图片base64
+ * @param Request $request
+ * @return mixed
+ */
+ public function get_image_base64(Request $request){
+ list($imageUrl,$codeUrl) = UtilService::postMore([
+ ['image',''],
+ ['code',''],
+ ],$request,true);
+ try{
+ $code = $codeUrl ? UtilService::setImageBase64($codeUrl) : false;
+ $image = $imageUrl ? UtilService::setImageBase64($imageUrl) : false;
+ return app('json')->successful(compact('code','image'));
+ }catch (\Exception $e){
+ return app('json')->fail($e->getMessage());
+ }
}
+
+
}
\ No newline at end of file
diff --git a/crmeb/app/api/controller/activity/StoreBargainController.php b/crmeb/app/api/controller/activity/StoreBargainController.php
index 80d2d8dd..80d5bb18 100644
--- a/crmeb/app/api/controller/activity/StoreBargainController.php
+++ b/crmeb/app/api/controller/activity/StoreBargainController.php
@@ -141,11 +141,11 @@ class StoreBargainController
$openid = WechatUser::uidToOpenid($bargainUserUid, 'openid');
$routineOpenid = WechatUser::uidToOpenid($bargainUserUid, 'routine_openid');
if($openid){//公众号
- $urlWeChat = Route::buildUrl('activity/dargain_detail/'.$bargainId.'/'.$bargainUserUid)->suffix('')->domain(true)->build();
+ $urlWeChat = Route::buildUrl('/activity/dargain_detail/'.$bargainId.'/'.$bargainUserUid)->suffix('')->domain(true)->build();
WechatTemplateService::sendTemplate($openid,WechatTemplateService::BARGAIN_SUCCESS,[
'first'=> '好腻害!你的朋友们已经帮你砍到底价了!',
'keyword1'=> $bargainInfo['title'],
- 'keyword2'=> $bargainInfo['bargain_price_min'],
+ 'keyword2'=> $bargainInfo['min_price'],
'remark'=> '点击查看订单详情'
],$urlWeChat);
}else if($routineOpenid){ //小程序
@@ -314,7 +314,7 @@ class StoreBargainController
if($user['is_promoter'] || SystemConfigService::get('store_brokerage_statu') == 2) $valueData.='&pid='.$user['uid'];
$res = RoutineCode::getPageCode('pages/activity/goods_bargain_details/index',$valueData,280);
if(!$res) return app('json')->fail('二维码生成失败');
- $imageInfo = UploadService::imageStream($name,$res,'routine/activity/bargain/code');
+ $imageInfo = UploadService::getInstance()->setUploadPath('routine/activity/bargain/code')->imageStream($name,$res);
if(!is_array($imageInfo)) return app('json')->fail($imageInfo);
if($imageInfo['image_type'] == 1) $remoteImage = UtilService::remoteImage($siteUrl.$imageInfo['dir']);
else $remoteImage = UtilService::remoteImage($imageInfo['dir']);
diff --git a/crmeb/app/api/controller/activity/StoreCombinationController.php b/crmeb/app/api/controller/activity/StoreCombinationController.php
index 59c18917..324e6811 100644
--- a/crmeb/app/api/controller/activity/StoreCombinationController.php
+++ b/crmeb/app/api/controller/activity/StoreCombinationController.php
@@ -27,8 +27,8 @@ class StoreCombinationController
public function lst(Request $request)
{
list($page, $limit) = UtilService::getMore([
- ['page',0],
- ['limit',0],
+ ['page',1],
+ ['limit',10],
],$request, true);
$combinationList = StoreCombination::getAll($page, $limit);
if(!count($combinationList)) return app('json')->fail('暂无拼团');
@@ -55,15 +55,17 @@ class StoreCombinationController
if(!$imageInfo){
$codeUrl = UtilService::setHttpType($siteUrl.'/activity/group_detail/'.$id, 1);//二维码链接
$imageInfo = UtilService::getQRCodePath($codeUrl, $name);
- if(!$imageInfo) return app('json')->fail('二维码生成失败');
- SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2);
- $url = $imageInfo['dir'];
+ if(is_array($imageInfo)){
+ SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2);
+ $url = $imageInfo['dir'];
+ }else
+ $url = '';
}else $url = $imageInfo['att_dir'];
if($imageInfo['image_type'] == 1)
$url = $siteUrl.$url;
$combinationOne['image'] = UtilService::setSiteUrl($combinationOne['image'], $siteUrl);
- $combinationOne['image_base'] = UtilService::setImageBase64(UtilService::setSiteUrl($combinationOne['image'], $siteUrl));
- $combinationOne['code_base'] = UtilService::setImageBase64($url);
+ $combinationOne['image_base'] = UtilService::setSiteUrl($combinationOne['image'], $siteUrl);
+ $combinationOne['code_base'] = $url;
$combinationOne['sale_stock'] = 0;
if($combinationOne['stock'] > 0) $combinationOne['sale_stock'] = 1;
if(!strlen(trim($combinationOne['unit_name']))) $combinationOne['unit_name'] = '个';
@@ -104,7 +106,7 @@ class StoreCombinationController
if(isset($pink['is_refund']) && $pink['is_refund']) {
if($pink['is_refund'] != $pink['id']){
$id = $pink['is_refund'];
- return $this->pink($id);
+ return $this->pink($request,$id);
}else{
return app('json')->fail('订单已退款');
}
@@ -200,7 +202,7 @@ class StoreCombinationController
if($user['is_promoter'] || SystemConfigService::get('store_brokerage_statu')==2) $valueData.='&pid='.$user['uid'];
$res = RoutineCode::getPageCode('pages/activity/goods_combination_status/index',$valueData,280);
if(!$res) return app('json')->fail('二维码生成失败');
- $imageInfo = UploadService::imageStream($name,$res,'routine/activity/pink/code');
+ $imageInfo = UploadService::getInstance()->setUploadPath('routine/activity/pink/code')->imageStream($name,$res);
if(!is_array($imageInfo)) return app('json')->fail($imageInfo);
if($imageInfo['image_type'] == 1) $remoteImage = UtilService::remoteImage($siteUrl.$imageInfo['dir']);
else $remoteImage = UtilService::remoteImage($imageInfo['dir']);
diff --git a/crmeb/app/api/controller/activity/StoreSeckillController.php b/crmeb/app/api/controller/activity/StoreSeckillController.php
index 3a05aa9f..9197ac71 100644
--- a/crmeb/app/api/controller/activity/StoreSeckillController.php
+++ b/crmeb/app/api/controller/activity/StoreSeckillController.php
@@ -103,7 +103,7 @@ class StoreSeckillController
* @param $id
* @return mixed
*/
- public function detail(Request $request, $id){
+ public function detail(Request $request, $id,$time = 0){
if(!$id || !($storeInfo = StoreSeckill::getValidProduct($id))) return app('json')->fail('商品不存在或已下架!');
$storeInfo = $storeInfo->hidden(['cost','add_time','is_del'])->toArray();
@@ -112,17 +112,18 @@ class StoreSeckillController
$imageInfo = SystemAttachment::getInfo($name,'name');
$siteUrl = SystemConfigService::get('site_url');
if(!$imageInfo){
- $codeUrl = UtilService::setHttpType($siteUrl.'/activity/seckill_detail/'.$id, 1);//二维码链接
+ $codeUrl = UtilService::setHttpType($siteUrl.'/activity/seckill_detail/'.$id.'/'.$time, 1);//二维码链接
$imageInfo = UtilService::getQRCodePath($codeUrl, $name);
- if(!$imageInfo) return app('json')->fail('二维码生成失败');
- SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2);
- $url = $imageInfo['dir'];
+ if(is_array($imageInfo)){
+ SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2);
+ $url = $imageInfo['dir'];
+ }else
+ $url = '';
}else $url = $imageInfo['att_dir'];
- if($imageInfo['image_type'] == 1)
- $url = $siteUrl.$url;
+ if($imageInfo['image_type'] == 1) $url = $siteUrl.$url;
$storeInfo['image'] = UtilService::setSiteUrl($storeInfo['image'], $siteUrl);
- $storeInfo['image_base'] = UtilService::setImageBase64(UtilService::setSiteUrl($storeInfo['image'], $siteUrl));
- $storeInfo['code_base'] = UtilService::setImageBase64($url);
+ $storeInfo['image_base'] = UtilService::setSiteUrl($storeInfo['image'], $siteUrl);
+ $storeInfo['code_base'] = $url;
$uid = $request->uid();
$storeInfo['userLike'] = StoreProductRelation::isProductRelation($id, $uid, 'like', 'product_seckill');
$storeInfo['like_num'] = StoreProductRelation::productRelationNum($id,'like','product_seckill');
diff --git a/crmeb/app/api/controller/order/StoreOrderController.php b/crmeb/app/api/controller/order/StoreOrderController.php
index b591ce12..04c797c6 100644
--- a/crmeb/app/api/controller/order/StoreOrderController.php
+++ b/crmeb/app/api/controller/order/StoreOrderController.php
@@ -1,22 +1,27 @@
successful($data);
}
@@ -96,8 +103,9 @@ class StoreOrderController
$uid = $request->uid();
if (StoreOrder::be(['order_id|unique' => $key, 'uid' => $uid, 'is_del' => 0]))
return app('json')->status('extend_order', '订单已生成', ['orderId' => $key, 'key' => $key]);
- list($addressId, $couponId, $payType, $useIntegral, $mark, $combinationId, $pinkId, $seckill_id, $formId, $bargainId) = UtilService::postMore([
- 'addressId', 'couponId', ['payType', 'yue'], ['useIntegral',0], 'mark', ['combinationId', 0], ['pinkId', 0], ['seckill_id', 0], ['formId', ''], ['bargainId', '']
+ list($addressId, $couponId, $payType, $useIntegral, $mark, $combinationId, $pinkId, $seckill_id, $formId, $bargainId,$shipping_type) = UtilService::postMore([
+ 'addressId', 'couponId', ['payType', 'yue'], ['useIntegral',0], 'mark', ['combinationId', 0], ['pinkId', 0], ['seckill_id', 0], ['formId', ''], ['bargainId', ''],
+ ['shipping_type',1],
], $request, true);
$payType = strtolower($payType);
if ($bargainId){
@@ -115,8 +123,7 @@ class StoreOrderController
if (StoreOrder::getIsOrderPink($pinkId, $request->uid()))
return app('json')->status('ORDER_EXIST', '订单生成失败,你已经参加该团了,请先支付订单', ['orderId' => StoreOrder::getStoreIdPink($pinkId, $request->uid())]);
}
- Db::startTrans();
- $priceGroup = StoreOrder::cacheKeyCreateOrder($request->uid(), $key, $addressId, $payType, (int)$useIntegral, $couponId, $mark, $combinationId, $pinkId, $seckill_id, $bargainId, true, 0);
+ $priceGroup = StoreOrder::cacheKeyCreateOrder($request->uid(), $key, $addressId, $payType, (int)$useIntegral, $couponId, $mark, $combinationId, $pinkId, $seckill_id, $bargainId, true, 0,$shipping_type);
if($priceGroup)
return app('json')->status('NONE', 'ok', $priceGroup);
else
@@ -139,8 +146,9 @@ class StoreOrderController
$uid = $request->uid();
if (StoreOrder::be(['order_id|unique' => $key, 'uid' => $uid, 'is_del' => 0]))
return app('json')->status('extend_order', '订单已生成', ['orderId' => $key, 'key' => $key]);
- list($addressId, $couponId, $payType, $useIntegral, $mark, $combinationId, $pinkId, $seckill_id, $formId, $bargainId, $from) = UtilService::postMore([
- 'addressId', 'couponId', 'payType', ['useIntegral',0], 'mark', ['combinationId', 0], ['pinkId', 0], ['seckill_id', 0], ['formId', ''], ['bargainId', ''], ['from', 'weixin']
+ list($addressId, $couponId, $payType, $useIntegral, $mark, $combinationId, $pinkId, $seckill_id, $formId, $bargainId, $from,$shipping_type,$real_name,$phone) = UtilService::postMore([
+ 'addressId', 'couponId', 'payType', ['useIntegral',0], 'mark', ['combinationId', 0], ['pinkId', 0], ['seckill_id', 0], ['formId', ''], ['bargainId', ''], ['from', 'weixin'],
+ ['shipping_type',1],['real_name',''],['phone','']
], $request, true);
$payType = strtolower($payType);
if ($bargainId){
@@ -160,12 +168,13 @@ class StoreOrderController
}
$isChannel = 1;
if($from == 'weixin') $isChannel = 0;
- $order = StoreOrder::cacheKeyCreateOrder($request->uid(), $key, $addressId, $payType, (int)$useIntegral, $couponId, $mark, $combinationId, $pinkId, $seckill_id, $bargainId, false, $isChannel);
+ $order = StoreOrder::cacheKeyCreateOrder($request->uid(), $key, $addressId, $payType, (int)$useIntegral, $couponId, $mark, $combinationId, $pinkId, $seckill_id, $bargainId, false, $isChannel,$shipping_type,$real_name,$phone);
+ if($order === false) return app('json')->fail(StoreOrder::getErrorInfo('订单生成失败'));
$orderId = $order['order_id'];
$info = compact('orderId', 'key');
if ($orderId) {
- event('OrderCreated', [$order]);
-
+ event('OrderCreated', [$order]); //订单创建成功事件
+ event('ShortMssageSend',[$orderId,'AdminPlaceAnOrder']);//发送管理员通知
switch ($payType) {
case "weixin":
$orderInfo = StoreOrder::where('order_id', $orderId)->find();
@@ -347,8 +356,32 @@ class StoreOrderController
$order = StoreOrder::getUserOrderDetail($request->uid(),$uni);
if(!$order) return app('json')->fail('订单不存在');
$order = $order->toArray();
+ if($order['verify_code']){
+ $verify_code = $order['verify_code'];
+ $verify[] = substr($verify_code,0,4);
+ $verify[] = substr($verify_code,4,4);
+ $verify[] = substr($verify_code,8);
+ $order['_verify_code'] = implode(' ',$verify);
+ }
$order['add_time_y'] = date('Y-m-d',$order['add_time']);
$order['add_time_h'] = date('H:i:s',$order['add_time']);
+ $order['system_store'] = SystemStore::getStoreDispose();
+ if($order['shipping_type'] === 2 && $order['verify_code']){
+ $name = $order['verify_code'].'.jpg';
+ $imageInfo = SystemAttachment::getInfo($name,'name');
+ $siteUrl = SystemConfigService::get('site_url');
+ if(!$imageInfo){
+ $imageInfo = UtilService::getQRCodePath($order['verify_code'], $name);
+ if(is_array($imageInfo)){
+ SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2);
+ $url = $imageInfo['dir'];
+ }else
+ $url = '';
+ }else $url = $imageInfo['att_dir'];
+ if(isset($imageInfo['image_type']) && $imageInfo['image_type'] == 1) $url = $siteUrl.$url;
+ $order['code'] = $url;
+ }
+ $order['mapKey'] = SystemConfigService::get('tengxun_map_key');
return app('json')->successful('ok',StoreOrder::tidyOrder($order,true,true));
}
@@ -422,7 +455,7 @@ class StoreOrderController
$cartNew['truePrice'] = $cart['truePrice'];
$cartNew['productInfo']['image'] = $cart['productInfo']['image'];
$cartNew['productInfo']['store_name'] = $cart['productInfo']['store_name'];
- $cartNew['productInfo']['unit_name'] = $cart['productInfo']['unit_name'];
+ $cartNew['productInfo']['unit_name'] = $cart['productInfo']['unit_name'] ?? '';
array_push($info, $cartNew);
unset($cart);
}
@@ -592,4 +625,42 @@ class StoreOrderController
return app('json')->successful($cartProduct);
}
+ /**
+ * 门店核销
+ * @param Request $request
+ */
+ public function order_verific(Request $request){
+ list($verify_code,$is_confirm) = UtilService::postMore([
+ ['verify_code',''],
+ ['is_confirm',0]
+ ],$request,true);
+ if(!$verify_code) return app('json')->fail('缺少核销码');
+ $orderInfo = StoreOrder::where('verify_code',$verify_code)->where('paid',1)->where('refund_status',0)->find();
+ if(!$orderInfo) return app('json')->fail('核销的订单不存在或未支付或已退款');
+ if($orderInfo->status > 0) return app('json')->fail('订单已经核销');
+ if($orderInfo->combination_id && $orderInfo->pink_id){
+ $res = StorePink::where('id',$orderInfo->pink_id)->where('status','<>',2)->count();
+ if($res) return app('json')->fail('拼团订单暂未成功无法核销!');
+ }
+ if(!$is_confirm){
+ $orderInfo['image'] = StoreCart::getProductImage($orderInfo->cart_id);
+ return app('json')->success($orderInfo->toArray());
+ }
+ StoreOrder::beginTrans();
+ try{
+ $orderInfo->status = 2;
+ if($orderInfo->save()){
+ StoreOrder::commitTrans();
+ return app('json')->success('核销成功');
+ }else{
+ StoreOrder::rollbackTrans();
+ return app('json')->fail('核销失败');
+ }
+ }catch (\PDOException $e){
+ StoreOrder::rollbackTrans();
+ return app('json')->fail($e->getMessage());
+ }
+
+ }
+
}
\ No newline at end of file
diff --git a/crmeb/app/api/controller/store/StoreProductController.php b/crmeb/app/api/controller/store/StoreProductController.php
index 96d2032f..1a51f538 100644
--- a/crmeb/app/api/controller/store/StoreProductController.php
+++ b/crmeb/app/api/controller/store/StoreProductController.php
@@ -3,6 +3,7 @@
namespace app\api\controller\store;
use app\admin\model\system\SystemAttachment;
+use app\models\system\SystemStore;
use app\models\store\StoreProduct;
use app\models\store\StoreProductAttr;
use app\models\store\StoreProductRelation;
@@ -34,7 +35,8 @@ class StoreProductController
['salesOrder', ''],
['news', 0],
['page', 0],
- ['limit', 0]
+ ['limit', 0],
+ ['type', 0]
], $request);
return app('json')->successful(StoreProduct::getProductList($data, $request->uid()));
}
@@ -54,46 +56,54 @@ class StoreProductController
if (!$id || !($storeInfo = StoreProduct::getValidProduct($id,'id'))) return app('json')->fail('商品不存在或已下架');
$userType = $request->get('user_type','wechat');
$user = $request->user();
- switch ($userType){
- case 'wechat':
- //公众号
- $name = $id.'_product_detail_'.$user['uid'].'_is_promoter_'.$user['is_promoter'].'.wap.jpg';
- $imageInfo = SystemAttachment::getInfo($name,'name');
- $siteUrl = SystemConfigService::get('site_url');
- if(!$imageInfo){
- $codeUrl = UtilService::setHttpType($siteUrl.'/detail/'.$id.'?spread='.$user['uid'], 1);//二维码链接
- $imageInfo = UtilService::getQRCodePath($codeUrl, $name);
- if(!$imageInfo) return app('json')->fail('二维码生成失败');
- SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2);
- $url = $imageInfo['dir'];
- }else $url = $imageInfo['att_dir'];
- if($imageInfo['image_type'] == 1) $url = $siteUrl.$url;
- return app('json')->successful(['code'=>UtilService::setImageBase64($url)]);
- break;
- case 'routine':
- //小程序
- $name = $id.'_'.$user['uid'].'_'.$user['is_promoter'].'_product.jpg';
- $imageInfo = SystemAttachment::getInfo($name,'name');
- $siteUrl = SystemConfigService::get('site_url').DS;
- if(!$imageInfo){
- $data='id='.$id;
- if($user['is_promoter'] || SystemConfigService::get('store_brokerage_statu')==2) $data.='&pid='.$user['uid'];
- $res = \app\models\routine\RoutineCode::getPageCode('pages/goods_details/index',$data,280);
- if(!$res) return app('json')->fail('二维码生成失败');
- $imageInfo = \crmeb\services\UploadService::imageStream($name,$res,'routine/product');
- if(is_string($imageInfo)) return app('json')->fail($imageInfo);
- if($imageInfo['image_type'] == 1) $remoteImage = UtilService::remoteImage($siteUrl.$imageInfo['dir']);
- else $remoteImage = UtilService::remoteImage($imageInfo['dir']);
- if(!$remoteImage['status']) return app('json')->fail('小程序二维码未能生成');
- SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2);
- $url = $imageInfo['dir'];
- }else $url = $imageInfo['att_dir'];
- if($imageInfo['image_type'] == 1) $url = $siteUrl.$url;
- return app('json')->successful(['code'=>$url]);
+ try{
+ switch ($userType){
+ case 'wechat':
+ //公众号
+ $name = $id.'_product_detail_'.$user['uid'].'_is_promoter_'.$user['is_promoter'].'.wap.jpg';
+ $imageInfo = SystemAttachment::getInfo($name,'name');
+ $siteUrl = SystemConfigService::get('site_url');
+ if(!$imageInfo){
+ $codeUrl = UtilService::setHttpType($siteUrl.'/detail/'.$id.'?spread='.$user['uid'], 1);//二维码链接
+ $imageInfo = UtilService::getQRCodePath($codeUrl, $name);
+ if(is_string($imageInfo)) return app('json')->fail('二维码生成失败');
+ SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2);
+ $url = $imageInfo['dir'];
+ }else $url = $imageInfo['att_dir'];
+ if($imageInfo['image_type'] == 1) $url = $siteUrl.$url;
+ return app('json')->successful(['code'=>UtilService::setImageBase64($url)]);
+ break;
+ case 'routine':
+ //小程序
+ $name = $id.'_'.$user['uid'].'_'.$user['is_promoter'].'_product.jpg';
+ $imageInfo = SystemAttachment::getInfo($name,'name');
+ $siteUrl = SystemConfigService::get('site_url').DS;
+ if(!$imageInfo){
+ $data='id='.$id;
+ if($user['is_promoter'] || SystemConfigService::get('store_brokerage_statu')==2) $data.='&pid='.$user['uid'];
+ $res = \app\models\routine\RoutineCode::getPageCode('pages/goods_details/index',$data,280);
+ if(!$res) return app('json')->fail('二维码生成失败');
+ $imageInfo = \crmeb\services\UploadService::getInstance()->setUploadPath('routine/product')->imageStream($name,$res);
+ if(is_string($imageInfo)) return app('json')->fail($imageInfo);
+ if($imageInfo['image_type'] == 1) $remoteImage = UtilService::remoteImage($siteUrl.$imageInfo['dir']);
+ else $remoteImage = UtilService::remoteImage($imageInfo['dir']);
+ if(!$remoteImage['status']) return app('json')->fail('小程序二维码未能生成');
+ SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2);
+ $url = $imageInfo['dir'];
+ }else $url = $imageInfo['att_dir'];
+ if($imageInfo['image_type'] == 1) $url = $siteUrl.$url;
+ return app('json')->successful(['code'=>$url]);
+ }
+ }catch (\Exception $e){
+ return app('json')->fail($e->getMessage(),[
+ 'code'=>$e->getCode(),
+ 'line'=>$e->getLine(),
+ 'message'=>$e->getMessage()
+ ]);
}
}
- public function detail(Request $request, $id)
+ public function detail(Request $request, $id,$type = 0)
{
if (!$id || !($storeInfo = StoreProduct::getValidProduct($id))) return app('json')->fail('商品不存在或已下架');
@@ -104,15 +114,16 @@ class StoreProductController
if(!$imageInfo){
$codeUrl = UtilService::setHttpType($siteUrl.'/detail/'.$id, 1);//二维码链接
$imageInfo = UtilService::getQRCodePath($codeUrl, $name);
- if(!$imageInfo) return app('json')->fail('二维码生成失败');
- SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2);
- $url = $imageInfo['dir'];
+ if(is_array($imageInfo)){
+ SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2);
+ $url = $imageInfo['dir'];
+ }else
+ $url = '';
}else $url = $imageInfo['att_dir'];
- if($imageInfo['image_type'] == 1)
- $url = $siteUrl.$url;
+ if($imageInfo['image_type'] == 1) $url = $siteUrl.$url;
$storeInfo['image'] = UtilService::setSiteUrl($storeInfo['image'], $siteUrl);
- $storeInfo['image_base'] = UtilService::setImageBase64(UtilService::setSiteUrl($storeInfo['image'], $siteUrl));
- $storeInfo['code_base'] = UtilService::setImageBase64($url);
+ $storeInfo['image_base'] = UtilService::setSiteUrl($storeInfo['image'], $siteUrl);
+ $storeInfo['code_base'] = $url;
$uid = $request->uid();
$data['uid'] = $uid;
//替换windows服务器下正反斜杠问题导致图片无法显示
@@ -121,7 +132,7 @@ class StoreProductController
}, $storeInfo['description']);
$storeInfo['userCollect'] = StoreProductRelation::isProductRelation($id, $uid, 'collect');
$storeInfo['userLike'] = StoreProductRelation::isProductRelation($id, $uid, 'like');
- list($productAttr, $productValue) = StoreProductAttr::getProductAttrDetail($id);
+ list($productAttr, $productValue) = StoreProductAttr::getProductAttrDetail($id,$uid,$type);
setView($uid, $id, $storeInfo['cate_id'], 'viwe');
$data['storeInfo'] = StoreProduct::setLevelPrice($storeInfo, $uid, true);
$data['similarity'] = StoreProduct::cateIdBySimilarityProduct($storeInfo['cate_id'], 'id,store_name,image,price,sales,ficti', 4);
@@ -150,7 +161,10 @@ class StoreProductController
$data['replyChance'] = bcmul($data['replyChance'], 100, 2);
}
} else $data['replyChance'] = 0;
- $data['mer_id'] = StoreProduct::where('id', $storeInfo['id'])->value('mer_id');
+ $data['mer_id'] = $storeInfo['mer_id'];
+ $data['system_store'] = ($res = SystemStore::getStoreDispose()) ? $res : [];
+ $data['good_list'] = StoreProduct::getGoodList(18,'image,store_name,price,id');
+ $data['mapKey'] = SystemConfigService::get('tengxun_map_key');
return app('json')->successful($data);
}
diff --git a/crmeb/app/api/controller/user/UserBillController.php b/crmeb/app/api/controller/user/UserBillController.php
index acb077be..2154ed3b 100644
--- a/crmeb/app/api/controller/user/UserBillController.php
+++ b/crmeb/app/api/controller/user/UserBillController.php
@@ -166,7 +166,7 @@ class UserBillController
if(!$imageInfo){
$res = RoutineCode::getShareCode($user['uid'], 'spread', '', '');
if(!$res) return app('json')->fail('二维码生成失败');
- $imageInfo = UploadService::imageStream($name,$res['res'],'routine/spread/code');
+ $imageInfo = UploadService::getInstance()->setUploadPath('routine/spread/code')->imageStream($name,$res['res']);
if(!is_array($imageInfo)) return app('json')->fail($imageInfo);
SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2);
RoutineQrcode::setRoutineQrcodeFind($res['id'],['status'=>1,'time'=>time(),'qrcode_url'=>$imageInfo['dir']]);
diff --git a/crmeb/app/api/controller/user/UserController.php b/crmeb/app/api/controller/user/UserController.php
index 75a60bc9..4ee23ab6 100644
--- a/crmeb/app/api/controller/user/UserController.php
+++ b/crmeb/app/api/controller/user/UserController.php
@@ -31,6 +31,7 @@ use crmeb\services\SystemConfigService;
use crmeb\services\UploadService;
use crmeb\services\UtilService;
use think\facade\Cache;
+use think\facade\Db;
/**
* 用户类
@@ -40,6 +41,11 @@ use think\facade\Cache;
class UserController
{
+ /**
+ * 获取用户信息
+ * @param Request $request
+ * @return mixed
+ */
public function userInfo(Request $request)
{
return app('json')->success($request->user()->toArray());
@@ -386,7 +392,7 @@ class UserController
*/
public function sign_integral(Request $request)
{
- $signed = UserSign::getToDayIsSign($request->uid());
+ $signed = UserSign::getIsSign($request->uid());
if($signed) return app('json')->fail('已签到');
if(false !== ($integral = UserSign::sign($request->uid())))
return app('json')->successful('签到获得'.floatval($integral).'积分',['integral'=>$integral]);
@@ -409,8 +415,8 @@ class UserController
//是否统计签到
if($sign || $all){
$user['sum_sgin_day'] = UserSign::getSignSumDay($user['uid']);
- $user['is_day_sgin'] = UserSign::getToDayIsSign($user['uid']);
- $user['is_YesterDay_sgin'] = UserSign::getYesterDayIsSign($user['uid']);
+ $user['is_day_sgin'] = UserSign::getIsSign($user['uid']);
+ $user['is_YesterDay_sgin'] = UserSign::getIsSign($user['uid'],'yesterday');
if(!$user['is_day_sgin'] && !$user['is_YesterDay_sgin']){ $user['sign_num'] = 0;}
}
//是否统计积分使用情况
@@ -470,4 +476,40 @@ class UserController
return app('json')->fail('修改失败');
}
+ /**
+ * 推广人排行
+ * @param Request $request
+ * @return mixed
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
+ public function rank(Request $request){
+ $data = UtilService::getMore([
+ ['page',''],
+ ['limit',''],
+ ['type','']
+ ],$request);
+ $users = User::getRankList($data);
+ return app('json')->success($users);
+ }
+
+ /**
+ * 佣金排行
+ * @param Request $request
+ * @return mixed
+ */
+ public function brokerage_rank(Request $request){
+ $data = UtilService::getMore([
+ ['page',''],
+ ['limit'],
+ ['type']
+ ],$request);
+ return app('json')->success([
+ 'rank' => User::brokerageRank($data),
+ 'position'=> User::currentUserRank($request->user()['brokerage_price'])
+ ]);
+
+ }
+
}
\ No newline at end of file
diff --git a/crmeb/app/api/controller/wechat/AuthController.php b/crmeb/app/api/controller/wechat/AuthController.php
index 2fedfb02..cab3b33c 100644
--- a/crmeb/app/api/controller/wechat/AuthController.php
+++ b/crmeb/app/api/controller/wechat/AuthController.php
@@ -14,13 +14,23 @@ use app\models\user\User;
use app\models\routine\RoutineFormId;
use think\facade\Cache;
+/**
+ * 小程序相关
+ * Class AuthController
+ * @package app\api\controller\wechat
+ */
class AuthController
{
- /*
+
+ /**
* 小程序授权登录
- * @param json
- *
- * */
+ * @param Request $request
+ * @return mixed
+ * @throws \Psr\SimpleCache\InvalidArgumentException
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public function mp_auth(Request $request)
{
$cache_key = '';
@@ -61,10 +71,8 @@ class AuthController
$userInfo['code'] = $data['spread_code'];
$userInfo['session_key'] = $session_key;
$userInfo['login_type'] = $login_type;
- $dataOauthInfo = WechatUser::routineOauth($userInfo);
- $userInfo['uid'] = $dataOauthInfo['uid'];
- $userInfo['page'] = $dataOauthInfo['page'];
- $userInfo = User::where('uid',$dataOauthInfo['uid'])->find();
+ $uid = WechatUser::routineOauth($userInfo);
+ $userInfo = User::where('uid',$uid)->find();
if($userInfo->login_type == 'h5' && ($h5UserInfo = User::where(['account'=>$userInfo->phone,'phone'=>$userInfo->phone,'user_type'=>'h5'])->find()))
$token = UserToken::createToken($userInfo, 'routine');
else
@@ -81,31 +89,45 @@ class AuthController
return app('json')->fail('获取用户访问token失败!');
}
- /*
- * 获取小程序授权logo
- * */
- public function get_logo()
+ /**
+ * 获取授权logo
+ * @param Request $request
+ * @return mixed
+ */
+ public function get_logo(Request $request)
{
- $routine_logo=SystemConfigService::get('routine_logo');
- if(strstr($routine_logo,'http')===false) $routine_logo = SystemConfigService::get('site_url').$routine_logo;
- return app('json')->successful(['logo_url'=>str_replace('\\','/',$routine_logo)]);
+ $logoType = $request->get('type',1);
+ switch ((int)$logoType){
+ case 1:
+ $logo=SystemConfigService::get('routine_logo');
+ break;
+ case 2:
+ $logo=SystemConfigService::get('wechat_avatar');
+ break;
+ default:
+ $logo = '';
+ break;
+ }
+ if(strstr($logo,'http')===false && $logo) $logo = SystemConfigService::get('site_url').$logo;
+ return app('json')->successful(['logo_url'=>str_replace('\\','/',$logo)]);
}
- /*
+ /**
* 保存form id
- *
- * */
+ * @param Request $request
+ * @return mixed
+ */
public function set_form_id(Request $request)
{
$formId = $request->post('formId','');
if(!$formId) return app('json')->fail('缺少form id');
- RoutineFormId::SetFormId($formId,$request->uid);
- return app('json')->successful('保存form id 成功!',['uid'=>$request->uid]);
+ RoutineFormId::SetFormId($formId,$request->uid());
+ return app('json')->successful('保存form id 成功!',['uid'=>$request->uid()]);
}
- /*
+ /**
* 小程序支付回调
- * */
+ */
public function notify()
{
MiniProgramService::handleNotify();
diff --git a/crmeb/app/api/controller/wechat/WechatController.php b/crmeb/app/api/controller/wechat/WechatController.php
index 271bd206..566f3410 100644
--- a/crmeb/app/api/controller/wechat/WechatController.php
+++ b/crmeb/app/api/controller/wechat/WechatController.php
@@ -11,23 +11,48 @@ use app\Request;
use crmeb\services\WechatService;
use think\facade\Cookie;
+/**
+ * 微信公众号
+ * Class WechatController
+ * @package app\api\controller\wechat
+ */
class WechatController
{
+ /**
+ * 微信公众号服务
+ * @return \think\Response
+ */
public function serve()
{
return WechatService::serve();
}
+ /**
+ * 支付异步回调
+ */
public function notify()
{
WechatService::handleNotify();
}
+ /**
+ * 公众号权限配置信息获取
+ * @param Request $request
+ * @return mixed
+ */
public function config(Request $request)
{
return app('json')->success(json_decode(WechatService::jsSdk($request->get('url')), true));
}
+ /**
+ * 公众号授权登陆
+ * @param Request $request
+ * @return mixed
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public function auth(Request $request)
{
$spreadId = intval($request->param('spread'));
diff --git a/crmeb/app/event.php b/crmeb/app/event.php
index a183cff6..2fefa476 100644
--- a/crmeb/app/event.php
+++ b/crmeb/app/event.php
@@ -48,13 +48,14 @@ return [
'InitLogin' => [], // UserSubscribe 微信授权成功后 ebapi模块 Basic控制器
'UserLevelAfter' => [], // UserSubscribe 检查是否能成为会员 models模块 user.UserSign Model store.StoreOrder Model user.UserBill Model
'OrderCreated' => [], //用户订单创建成功
- 'OrderPaySuccess' => [], //用户订单支付成功
+ 'OrderPaySuccess' => [], // OrderSubscribe 用户订单支付成功
'OrderCreateAgain' => [], //用户再次下单
'UserOrderRemoved' => [], //用户删除订单
'UserOrderTake' => [], //用户确认收货
'UserCommented' => [], //用户评价商品
'RechargeSuccess' => [], //用户充值成功后
'ImportNowMoney' => [], //用户佣金转成余额成功后
+ 'ShortMssageSend'=>[],//MessageSubscribe 下发短信
],
'subscribe' => [
diff --git a/crmeb/app/models/article/Article.php b/crmeb/app/models/article/Article.php
index 6f793492..95cef5d1 100644
--- a/crmeb/app/models/article/Article.php
+++ b/crmeb/app/models/article/Article.php
@@ -1,6 +1,7 @@
hasOne(StoreProduct::class,'id','product_id')->field('store_name,image,price,id');
+ }
+
protected function getImageInputAttr($value)
{
return explode(',',$value)?:[];
@@ -45,6 +51,7 @@ class Article extends BaseModel
if(!$id) return [];
$list = self::where('status',1)->where('hide',0)->where('id',$id)->order('id desc')->find();
if($list){
+ $list->store_info = $list->profile ? StoreProduct::setLevelPrice($list->profile->toArray(),0,true) : null;
$list = $list->hidden(['hide','status','admin_id','mer_id'])->toArray();
$list["content"] = Db::name('articleContent')->where('nid',$id)->value('content');
return $list;
diff --git a/crmeb/app/models/store/StoreBargain.php b/crmeb/app/models/store/StoreBargain.php
index 0eacdc6f..890ee7a0 100644
--- a/crmeb/app/models/store/StoreBargain.php
+++ b/crmeb/app/models/store/StoreBargain.php
@@ -66,11 +66,12 @@ class StoreBargain extends BaseModel
* @return array
*/
public static function getList($page = 0,$limit = 20,$field = 'id,product_id,title,price,min_price,image'){
- $model = self::validWhere();
- if($page) $list = $model->field($field)->page($page,$limit)->select()->each(function ($item){ $item['people'] = count(StoreBargainUser::getUserIdList($item['id']));});
- else $list = $model->field($field)->select()->each(function ($item){ $item['people'] = count(StoreBargainUser::getUserIdList($item['id']));});
- if($list) return $list->toArray();
- else return [];
+ $model = self::validWhere()->field($field);
+ if($page) $model = $model->page($page,$limit);
+ $list = $model->select()->each(function ($item){
+ $item['people'] = count(StoreBargainUser::getUserIdList($item['id']));
+ });
+ return $list ? $list->toArray() : [];
}
/**
diff --git a/crmeb/app/models/store/StoreCart.php b/crmeb/app/models/store/StoreCart.php
index e8f0b41e..b204ef60 100644
--- a/crmeb/app/models/store/StoreCart.php
+++ b/crmeb/app/models/store/StoreCart.php
@@ -290,4 +290,12 @@ class StoreCart extends BaseModel
return self::whereIn('id',$ids)->column('product_id','id');
}
+ /**
+ * 获取购物车内最新一张产品图
+ */
+ public static function getProductImage(array $cart_id){
+ return self::whereIn('a.id',$cart_id)->alias('a')->order('a.id desc')
+ ->join('store_product p','p.id = a.product_id')->value('p.image');
+ }
+
}
\ No newline at end of file
diff --git a/crmeb/app/models/store/StoreCategory.php b/crmeb/app/models/store/StoreCategory.php
index 516f938e..583deafe 100644
--- a/crmeb/app/models/store/StoreCategory.php
+++ b/crmeb/app/models/store/StoreCategory.php
@@ -81,7 +81,7 @@ class StoreCategory extends BaseModel
public function children()
{
- return $this->hasMany(self::class, 'pid','id');
+ return $this->hasMany(self::class, 'pid','id')->where('is_show',1);
}
}
\ No newline at end of file
diff --git a/crmeb/app/models/store/StoreCouponIssue.php b/crmeb/app/models/store/StoreCouponIssue.php
index 487f1a05..03bd1bcf 100644
--- a/crmeb/app/models/store/StoreCouponIssue.php
+++ b/crmeb/app/models/store/StoreCouponIssue.php
@@ -50,16 +50,20 @@ class StoreCouponIssue extends BaseModel
}]);
$list = $list->select();
- foreach ($list as &$v) {
+ foreach ($list as $k=>$v) {
$v['is_use'] = $uid ? isset($v->used) : false;
-// if (!$v['is_use']) {
-// $v['is_use'] = $v['remain_count'] <= 0 && !$v['is_permanent'] ? false : $v['is_use'];
+// if(!$v['is_use']){
+// $v['is_use']=$v['remain_count'] <= 0 && !$v['is_permanent'] ? 2 : $v['is_use'];
// }
- if ($v['end_time']) {
- $v['start_time'] = date('Y/m/d', $v['start_time']);
- $v['end_time'] = $v['end_time'] ? date('Y/m/d', $v['end_time']) : date('Y/m/d', time() + 86400);
+ if(!$v['end_time']){
+ $v['add_time']= '';
+ $v['end_time'] = '不限时';
+ }else{
+ $v['add_time']=date('Y/m/d',$v['add_time']);
+ $v['end_time']=$v['end_time'] ? date('Y/m/d',$v['end_time']) : date('Y/m/d',time()+86400);
}
- $v['coupon_price'] = (float)$v['coupon_price'];
+ $v['coupon_price']=(int)$v['coupon_price'];
+ $list[$k] = $v;
}
return $list->hidden(['is_del', 'status', 'used', 'add_time'])->toArray();
diff --git a/crmeb/app/models/store/StoreOrder.php b/crmeb/app/models/store/StoreOrder.php
index e72fd762..faf391e0 100644
--- a/crmeb/app/models/store/StoreOrder.php
+++ b/crmeb/app/models/store/StoreOrder.php
@@ -7,10 +7,10 @@
namespace app\models\store;
+use app\models\system\SystemStore;
use app\models\routine\RoutineTemplate;
use crmeb\repositories\GoodsRepository;
use crmeb\repositories\PaymentRepositories;
-use crmeb\services\ApiLogs;
use app\models\user\User;
use app\models\user\UserAddress;
use app\models\user\UserBill;
@@ -26,6 +26,7 @@ use crmeb\services\workerman\ChannelService;
use think\facade\Cache;
use think\exception\PDOException;
use crmeb\traits\ModelTrait;
+use think\facade\Log;
use think\facade\Route;
/**
@@ -150,6 +151,16 @@ class StoreOrder extends BaseModel
return (float)$totalPrice;
}
+ /**
+ * 缓存订单信息
+ * @param $uid
+ * @param $cartInfo
+ * @param $priceGroup
+ * @param array $other
+ * @param int $cacheTime
+ * @return string
+ * @throws \Psr\SimpleCache\InvalidArgumentException
+ */
public static function cacheOrderInfo($uid, $cartInfo, $priceGroup, $other = [], $cacheTime = 600)
{
$key = md5(time());
@@ -157,6 +168,13 @@ class StoreOrder extends BaseModel
return $key;
}
+ /**
+ * 获取订单缓存信息
+ * @param $uid
+ * @param $key
+ * @return mixed|null
+ * @throws \Psr\SimpleCache\InvalidArgumentException
+ */
public static function getCacheOrderInfo($uid, $key)
{
$cacheName = 'user_order_' . $uid . $key;
@@ -164,6 +182,11 @@ class StoreOrder extends BaseModel
return Cache::get($cacheName);
}
+ /**
+ * 删除订单缓存
+ * @param $uid
+ * @param $key
+ */
public static function clearCacheOrderInfo($uid, $key)
{
Cache::deleteItem('user_order_' . $uid . $key);
@@ -184,6 +207,9 @@ class StoreOrder extends BaseModel
* @param int $bargain_id
* @param bool $test
* @param int $isChannel
+ * @param int $shipping_type
+ * @param string $real_name
+ * @param string $phone
* @return StoreOrder|bool|\think\Model
* @throws \think\Exception
* @throws \think\db\exception\DataNotFoundException
@@ -191,151 +217,189 @@ class StoreOrder extends BaseModel
* @throws \think\exception\DbException
*/
- public static function cacheKeyCreateOrder($uid, $key, $addressId, $payType, $useIntegral = false, $couponId = 0, $mark = '', $combinationId = 0, $pinkId = 0, $seckill_id = 0, $bargain_id = 0, $test = false, $isChannel = 0)
+ public static function cacheKeyCreateOrder($uid, $key, $addressId, $payType, $useIntegral = false, $couponId = 0, $mark = '', $combinationId = 0, $pinkId = 0, $seckill_id = 0, $bargain_id = 0, $test = false, $isChannel = 0,$shipping_type = 1,$real_name='',$phone='')
{
- $offlinePayStatus = (int)SystemConfigService::get('offline_pay_status') ?? (int)2;
- if($offlinePayStatus == 2) unset(self::$payType['offline']);
- if (!array_key_exists($payType, self::$payType)) return self::setErrorInfo('选择支付方式有误!');
- if (self::be(['unique' => $key, 'uid' => $uid])) return self::setErrorInfo('请勿重复提交订单');
- $userInfo = User::getUserInfo($uid);
- if (!$userInfo) return self::setErrorInfo('用户不存在!');
- $cartGroup = self::getCacheOrderInfo($uid, $key);
- if (!$cartGroup) return self::setErrorInfo('订单已过期,请刷新当前页面!');
- $cartInfo = $cartGroup['cartInfo'];
- $priceGroup = $cartGroup['priceGroup'];
- $other = $cartGroup['other'];
- $payPrice = (float)$priceGroup['totalPrice'];
- $payPostage = $priceGroup['storePostage'];
- if (!$test && !$addressId) return self::setErrorInfo('请选择收货地址!');
- if (!$test && (!UserAddress::be(['uid' => $uid, 'id' => $addressId, 'is_del' => 0]) || !($addressInfo = UserAddress::find($addressId))))
- return self::setErrorInfo('地址选择有误!');
-
-
- $cartIds = [];
- $totalNum = 0;
- $gainIntegral = 0;
- foreach ($cartInfo as $cart) {
- $cartIds[] = $cart['id'];
- $totalNum += $cart['cart_num'];
- if(!$seckill_id) $seckill_id = $cart['seckill_id'];
- if(!$bargain_id) $bargain_id = $cart['bargain_id'];
- if(!$combinationId) $combinationId = $cart['combination_id'];
- $cartInfoGainIntegral = isset($cart['productInfo']['give_integral']) ? bcmul($cart['cart_num'],$cart['productInfo']['give_integral'],2) : 0;
- $gainIntegral = bcadd($gainIntegral, $cartInfoGainIntegral, 2);
- }
- $deduction = $seckill_id || $bargain_id || $combinationId;
- if($deduction){
- $couponId = 0;
- $useIntegral = false;
- if(!$test){
- unset(self::$payType['offline']);
- if (!array_key_exists($payType, self::$payType)) return self::setErrorInfo('营销产品不能使用线下支付!');
+ self::beginTrans();
+ try{
+ $shipping_type = (int)$shipping_type;
+ $offlinePayStatus = (int)SystemConfigService::get('offline_pay_status') ?? (int)2;
+ if($offlinePayStatus == 2) unset(self::$payType['offline']);
+ if (!array_key_exists($payType, self::$payType)) return self::setErrorInfo('选择支付方式有误!',true);
+ if (self::be(['unique' => $key, 'uid' => $uid])) return self::setErrorInfo('请勿重复提交订单',true);
+ $userInfo = User::getUserInfo($uid);
+ if (!$userInfo) return self::setErrorInfo('用户不存在!',true);
+ $cartGroup = self::getCacheOrderInfo($uid, $key);
+ if (!$cartGroup) return self::setErrorInfo('订单已过期,请刷新当前页面!',true);
+ $cartInfo = $cartGroup['cartInfo'];
+ $priceGroup = $cartGroup['priceGroup'];
+ $other = $cartGroup['other'];
+ $payPrice = (float)$priceGroup['totalPrice'];
+ $payPostage = $priceGroup['storePostage'];
+ if($shipping_type === 1) {
+ if (!$test && !$addressId) return self::setErrorInfo('请选择收货地址!', true);
+ if (!$test && (!UserAddress::be(['uid' => $uid, 'id' => $addressId, 'is_del' => 0]) || !($addressInfo = UserAddress::find($addressId))))
+ return self::setErrorInfo('地址选择有误!', true);
+ }else{
+ if((!$real_name || !$phone) && !$test) return self::setErrorInfo('请填写姓名和电话',true);
+ $addressInfo['real_name'] = $real_name;
+ $addressInfo['phone'] = $phone;
+ $addressInfo['province'] = '';
+ $addressInfo['city'] = '';
+ $addressInfo['district'] = '';
+ $addressInfo['detail'] = '';
}
- }
- //使用优惠劵
- $res1 = true;
- if ($couponId) {
- $couponInfo = StoreCouponUser::validAddressWhere()->where('id', $couponId)->where('uid', $uid)->find();
- if (!$couponInfo) return self::setErrorInfo('选择的优惠劵无效!');
- if ($couponInfo['use_min_price'] > $payPrice)
- return self::setErrorInfo('不满足优惠劵的使用条件!');
- $payPrice = (float)bcsub($payPrice, $couponInfo['coupon_price'], 2);
- $res1 = StoreCouponUser::useCoupon($couponId);
- $couponPrice = $couponInfo['coupon_price'];
- } else {
- $couponId = 0;
- $couponPrice = 0;
- }
- if (!$res1) return self::setErrorInfo('使用优惠劵失败!');
- //是否包邮
- if ((isset($other['offlinePostage']) && $other['offlinePostage'] && $payType == 'offline')) $payPostage = 0;
- $payPrice = (float)bcadd($payPrice, $payPostage, 2);
-
- //积分抵扣
- $res2 = true;
- if ($useIntegral && $userInfo['integral'] > 0) {
- $deductionPrice = (float)bcmul($userInfo['integral'], $other['integralRatio'], 2);
- if ($deductionPrice < $payPrice) {
- $payPrice = bcsub($payPrice, $deductionPrice, 2);
- $usedIntegral = $userInfo['integral'];
- $res2 = false !== User::edit(['integral' => 0], $userInfo['uid'], 'uid');
+ $cartIds = [];
+ $totalNum = 0;
+ $gainIntegral = 0;
+ foreach ($cartInfo as $cart) {
+ $cartIds[] = $cart['id'];
+ $totalNum += $cart['cart_num'];
+ if(!$seckill_id) $seckill_id = $cart['seckill_id'];
+ if(!$bargain_id) $bargain_id = $cart['bargain_id'];
+ if(!$combinationId) $combinationId = $cart['combination_id'];
+ $cartInfoGainIntegral = isset($cart['productInfo']['give_integral']) ? bcmul($cart['cart_num'],$cart['productInfo']['give_integral'],2) : 0;
+ $gainIntegral = bcadd($gainIntegral, $cartInfoGainIntegral, 2);
+ }
+ $deduction = $seckill_id || $bargain_id || $combinationId;
+ if($deduction){
+ $couponId = 0;
+ $useIntegral = false;
+ if(!$test){
+ unset(self::$payType['offline']);
+ if (!array_key_exists($payType, self::$payType)) return self::setErrorInfo('营销产品不能使用线下支付!',true);
+ }
+ }
+ //使用优惠劵
+ $res1 = true;
+ if ($couponId) {
+ $couponInfo = StoreCouponUser::validAddressWhere()->where('id', $couponId)->where('uid', $uid)->find();
+ if (!$couponInfo) return self::setErrorInfo('选择的优惠劵无效!',true);
+ if ($couponInfo['use_min_price'] > $payPrice)
+ return self::setErrorInfo('不满足优惠劵的使用条件!',true);
+ $payPrice = (float)bcsub($payPrice, $couponInfo['coupon_price'], 2);
+ $res1 = StoreCouponUser::useCoupon($couponId);
+ $couponPrice = $couponInfo['coupon_price'];
} else {
- $deductionPrice = $payPrice;
- $usedIntegral = (float)bcdiv($payPrice, $other['integralRatio'], 2);
- $res2 = false !== User::bcDec($userInfo['uid'], 'integral', $usedIntegral, 'uid');
- $payPrice = 0;
+ $couponId = 0;
+ $couponPrice = 0;
}
- $res2 = $res2 && false != UserBill::expend('积分抵扣', $uid, 'integral', 'deduction', $usedIntegral, $key, $userInfo['integral'], '购买商品使用' . floatval($usedIntegral) . '积分抵扣' . floatval($deductionPrice) . '元');
- } else {
- $deductionPrice = 0;
- $usedIntegral = 0;
+ if (!$res1) return self::setErrorInfo('使用优惠劵失败!',true);
+
+ //$shipping_type = 1 快递发货 $shipping_type = 2 门店自提
+ $store_self_mention = SystemConfigService::get('store_self_mention') ?? 0;
+ if(!$store_self_mention) $shipping_type = 1;
+ if($shipping_type === 1) {
+ //是否包邮
+ if ((isset($other['offlinePostage']) && $other['offlinePostage'] && $payType == 'offline')) $payPostage = 0;
+ $payPrice = (float)bcadd($payPrice, $payPostage, 2);
+ }else if($shipping_type === 2){
+ //门店自提没有邮费支付
+ $priceGroup['storePostage'] = 0;
+ $payPostage = 0;
+ }
+
+ //积分抵扣
+ $res2 = true;
+ if ($useIntegral && $userInfo['integral'] > 0) {
+ $deductionPrice = (float)bcmul($userInfo['integral'], $other['integralRatio'], 2);
+ if ($deductionPrice < $payPrice) {
+ $payPrice = bcsub($payPrice, $deductionPrice, 2);
+ $usedIntegral = $userInfo['integral'];
+ $res2 = false !== User::edit(['integral' => 0], $userInfo['uid'], 'uid');
+ } else {
+ $deductionPrice = $payPrice;
+ $usedIntegral = (float)bcdiv($payPrice, $other['integralRatio'], 2);
+ $res2 = false !== User::bcDec($userInfo['uid'], 'integral', $usedIntegral, 'uid');
+ $payPrice = 0;
+ }
+ $res2 = $res2 && false != UserBill::expend('积分抵扣', $uid, 'integral', 'deduction', $usedIntegral, $key, $userInfo['integral'], '购买商品使用' . floatval($usedIntegral) . '积分抵扣' . floatval($deductionPrice) . '元');
+ } else {
+ $deductionPrice = 0;
+ $usedIntegral = 0;
+ }
+ if (!$res2) return self::setErrorInfo('使用积分抵扣失败!',true);
+ if($payPrice <= 0) $payPrice = 0;
+ if ($test) {
+ self::rollbackTrans();
+ return [
+ 'total_price' => $priceGroup['totalPrice'],
+ 'pay_price' => $payPrice,
+ 'pay_postage' => $payPostage,
+ 'coupon_price' => $couponPrice,
+ 'deduction_price' => $deductionPrice,
+ ];
+ }
+ $orderInfo = [
+ 'uid' => $uid,
+ 'order_id' => $test ? 0 : self::getNewOrderId($uid),
+ 'real_name' => $addressInfo['real_name'],
+ 'user_phone' => $addressInfo['phone'],
+ 'user_address' => $addressInfo['province'] . ' ' . $addressInfo['city'] . ' ' . $addressInfo['district'] . ' ' . $addressInfo['detail'],
+ 'cart_id' => $cartIds,
+ 'total_num' => $totalNum,
+ 'total_price' => $priceGroup['totalPrice'],
+ 'total_postage' => $priceGroup['storePostage'],
+ 'coupon_id' => $couponId,
+ 'coupon_price' => $couponPrice,
+ 'pay_price' => $payPrice,
+ 'pay_postage' => $payPostage,
+ 'deduction_price' => $deductionPrice,
+ 'paid' => 0,
+ 'pay_type' => $payType,
+ 'use_integral' => $usedIntegral,
+ 'gain_integral' => $gainIntegral,
+ 'mark' => htmlspecialchars($mark),
+ 'combination_id' => $combinationId,
+ 'pink_id' => $pinkId,
+ 'seckill_id' => $seckill_id,
+ 'bargain_id' => $bargain_id,
+ 'cost' => $priceGroup['costPrice'],
+ 'is_channel' => $isChannel,
+ 'add_time' => time(),
+ 'unique' => $key,
+ 'shipping_type'=>$shipping_type,
+ ];
+ if($shipping_type === 2){
+ $orderInfo['verify_code'] = self::getStoreCode();
+ $orderInfo['store_id'] = SystemStore::getStoreDispose(0,'id');
+ if(!$orderInfo['store_id']) return self::setErrorInfo('暂无门店无法选择门店自提!',true);
+ }
+ $order = self::create($orderInfo);
+ if (!$order) return self::setErrorInfo('订单生成失败!',true);
+ $res5 = true;
+ foreach ($cartInfo as $cart) {
+ //减库存加销量
+ if ($combinationId) $res5 = $res5 && StoreCombination::decCombinationStock($cart['cart_num'], $combinationId);
+ else if ($seckill_id) $res5 = $res5 && StoreSeckill::decSeckillStock($cart['cart_num'], $seckill_id);
+ else if ($bargain_id) $res5 = $res5 && StoreBargain::decBargainStock($cart['cart_num'], $bargain_id);
+ else $res5 = $res5 && StoreProduct::decProductStock($cart['cart_num'], $cart['productInfo']['id'], isset($cart['productInfo']['attrInfo']) ? $cart['productInfo']['attrInfo']['unique'] : '');
+ }
+ //保存购物车商品信息
+ $res4 = false !== StoreOrderCartInfo::setCartInfo($order['id'], $cartInfo);
+ //购物车状态修改
+ $res6 = false !== StoreCart::where('id', 'IN', $cartIds)->update(['is_pay' => 1]);
+ if (!$res4 || !$res5 || !$res6) return self::setErrorInfo('订单生成失败!',true);
+ GoodsRepository::storeProductOrderCreateEbApi($order, compact('cartInfo', 'addressId'));
+ self::clearCacheOrderInfo($uid, $key);
+ self::commitTrans();
+ StoreOrderStatus::status($order['id'], 'cache_key_create_order', '订单生成');
+ return $order;
+ }catch (\PDOException $e) {
+ self::rollbackTrans();
+ return self::setErrorInfo('生成订单时SQL执行错误错误原因:'.$e->getMessage());
+ }catch (\Exception $e){
+ self::rollbackTrans();
+ return self::setErrorInfo('生成订单时系统错误错误原因:'.$e->getMessage());
}
- if (!$res2) return self::setErrorInfo('使用积分抵扣失败!');
- if($payPrice <= 0) $payPrice = 0;
- if ($test) return [
- 'total_price' => $priceGroup['totalPrice'],
- 'pay_price' => $payPrice,
- 'pay_postage' => $payPostage,
- 'coupon_price' => $couponPrice,
- 'deduction_price' => $deductionPrice,
- ];
- $orderInfo = [
- 'uid' => $uid,
- 'order_id' => $test ? 0 : self::getNewOrderId($uid),
- 'real_name' => $addressInfo['real_name'],
- 'user_phone' => $addressInfo['phone'],
- 'user_address' => $addressInfo['province'] . ' ' . $addressInfo['city'] . ' ' . $addressInfo['district'] . ' ' . $addressInfo['detail'],
- 'cart_id' => $cartIds,
- 'total_num' => $totalNum,
- 'total_price' => $priceGroup['totalPrice'],
- 'total_postage' => $priceGroup['storePostage'],
- 'coupon_id' => $couponId,
- 'coupon_price' => $couponPrice,
- 'pay_price' => $payPrice,
- 'pay_postage' => $payPostage,
- 'deduction_price' => $deductionPrice,
- 'paid' => 0,
- 'pay_type' => $payType,
- 'use_integral' => $usedIntegral,
- 'gain_integral' => $gainIntegral,
- 'mark' => htmlspecialchars($mark),
- 'combination_id' => $combinationId,
- 'pink_id' => $pinkId,
- 'seckill_id' => $seckill_id,
- 'bargain_id' => $bargain_id,
- 'cost' => $priceGroup['costPrice'],
- 'is_channel' => $isChannel,
- 'add_time' => time(),
- 'unique' => $key
- ];
- $order = self::create($orderInfo);
- if (!$order) return self::setErrorInfo('订单生成失败!');
- $res5 = true;
- foreach ($cartInfo as $cart) {
- //减库存加销量
- if ($combinationId) $res5 = $res5 && StoreCombination::decCombinationStock($cart['cart_num'], $combinationId);
- else if ($seckill_id) $res5 = $res5 && StoreSeckill::decSeckillStock($cart['cart_num'], $seckill_id);
- else if ($bargain_id) $res5 = $res5 && StoreBargain::decBargainStock($cart['cart_num'], $bargain_id);
- else $res5 = $res5 && StoreProduct::decProductStock($cart['cart_num'], $cart['productInfo']['id'], isset($cart['productInfo']['attrInfo']) ? $cart['productInfo']['attrInfo']['unique'] : '');
- }
- //保存购物车商品信息
- $res4 = false !== StoreOrderCartInfo::setCartInfo($order['id'], $cartInfo);
- //购物车状态修改
- $res6 = false !== StoreCart::where('id', 'IN', $cartIds)->update(['is_pay' => 1]);
- if (!$res4 || !$res5 || !$res6) return self::setErrorInfo('订单生成失败!');
- GoodsRepository::storeProductOrderCreateEbApi($order, compact('cartInfo', 'addressId'));
- self::clearCacheOrderInfo($uid, $key);
- self::commitTrans();
- StoreOrderStatus::status($order['id'], 'cache_key_create_order', '订单生成');
- return $order;
}
- /*
+
+ /**
* 回退积分
- * @param array $order 订单信息
- * @return boolean
- * */
+ * @param $order 订单信息
+ * @return bool
+ */
public static function RegressionIntegral($order)
{
if ($order['paid'] || $order['status'] == -2 || $order['is_del']) return true;
@@ -347,11 +411,15 @@ class StoreOrder extends BaseModel
return false !== self::where('order_id', $order['order_id'])->update(['back_integral' => $order['use_integral']]);
}
- /*
+
+ /**
* 回退库存和销量
- * @param array $order 订单信息
- * @return boolean
- * */
+ * @param $order 订单信息
+ * @return bool
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function RegressionStock($order)
{
if ($order['paid'] || $order['status'] == -2 || $order['is_del']) return true;
@@ -370,11 +438,11 @@ class StoreOrder extends BaseModel
return $res5;
}
- /*
+ /**
* 回退优惠卷
- * @param array $order 订单信息
- * @return boolean
- * */
+ * @param $order 订单信息
+ * @return bool
+ */
public static function RegressionCoupon($order)
{
if ($order['paid'] || $order['status'] == -2 || $order['is_del']) return true;
@@ -401,21 +469,25 @@ class StoreOrder extends BaseModel
self::beginTrans();
try {
$res = self::RegressionIntegral($order) && self::RegressionStock($order) && self::RegressionCoupon($order);
- if ($res) {
- $order->is_del = 1;
- $order->save();
+ $order->is_del = 1;
+ if ($res && $order->save()) {
self::commitTrans();
- return true;
- }
+ return true;
+ }else
+ return false;
} catch (\Exception $e) {
self::rollbackTrans();
return self::setErrorInfo(['line' => $e->getLine(), 'message' => $e->getMessage()]);
}
}
+ /**
+ * 生成订单唯一id
+ * @param $uid 用户uid
+ * @return string
+ */
public static function getNewOrderId($uid)
{
- $count = (int)self::where('uid', $uid)->where('add_time', '>=', strtotime(date("Y-m-d")))->where('add_time', '<', strtotime(date("Y-m-d", strtotime('+1 day'))))->count();
list($msec, $sec) = explode(' ', microtime());
$msectime = (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
$orderId = 'wx' . $msectime . mt_rand(10000,99999);
@@ -423,6 +495,11 @@ class StoreOrder extends BaseModel
return $orderId;
}
+ /**
+ * 修改订单号
+ * @param $orderId
+ * @return string
+ */
public static function changeOrderId($orderId)
{
$ymd = substr($orderId, 2, 8);
@@ -430,7 +507,60 @@ class StoreOrder extends BaseModel
return 'wx' . $ymd . date('His') . $key;
}
- //TODO 小程序
+ /**
+ * 查找购物车里的所有产品标题
+ * @param $cartId 购物车id
+ * @return bool|string
+ */
+ public static function getProductTitle($cartId)
+ {
+ $title = '';
+ try{
+ $orderCart=StoreOrderCartInfo::where('cart_id','in',$cartId)->field('cart_info')->select();
+ foreach ($orderCart as $item){
+ if(isset($item['cart_info']['productInfo']['store_name'])){
+ $title.=$item['cart_info']['productInfo']['store_name'].'|';
+ }
+ }
+ unset($item);
+ if(!$title){
+ $productIds = StoreCart::where('id', 'in', $cartId)->column('product_id');
+ $productlist = ($productlist= StoreProduct::getProductField($productIds, 'store_name')) ? $productlist->toArray() : [];
+ foreach ($productlist as $item) {
+ if (isset($item['store_name'])) $title .= $item['store_name'] . '|';
+ }
+ }
+ if($title) $title = substr($title,0,strlen($title)-1);
+ unset($item);
+ }catch (\Exception $e){}
+ return $title;
+ }
+
+ /**
+ * 获取门店自提唯一核销码
+ * @return bool|string
+ */
+ public static function getStoreCode(){
+ list($msec, $sec) = explode(' ', microtime());
+ $num = bcadd(time(),mt_rand(10,999999),0).''.substr($msec,2,3);//生成随机数
+ if(strlen($num) < 12)
+ $num = str_pad((string)$num,12,0,STR_PAD_RIGHT);
+ else
+ $num = substr($num,0,12);
+ if(self::be(['verify_code'=>$num])) return self::getStoreCode();
+ return $num;
+ }
+
+
+ /**
+ * TODO 小程序JS支付
+ * @param $orderId
+ * @param string $field
+ * @return array|string
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function jsPay($orderId, $field = 'order_id')
{
if (is_string($orderId))
@@ -441,10 +571,21 @@ class StoreOrder extends BaseModel
if ($orderInfo['paid']) exception('支付已支付!');
if ($orderInfo['pay_price'] <= 0) exception('该支付无需支付!');
$openid = WechatUser::getOpenId($orderInfo['uid']);
- return MiniProgramService::jsPay($openid, $orderInfo['order_id'], $orderInfo['pay_price'], 'productr', SystemConfigService::get('site_name'));
+ $bodyContent = self::getProductTitle($orderInfo['cart_id']);
+ $site_name = SystemConfigService::get('site_name');
+ if(!$bodyContent && !$site_name) exception('支付参数缺少:请前往后台设置->系统设置-> 填写 网站名称');
+ return MiniProgramService::jsPay($openid, $orderInfo['order_id'], $orderInfo['pay_price'], 'productr',self::getSubstrUTf8($site_name.' - '.$bodyContent,30));
}
- //TODO js
+ /**
+ * 微信公众号JS支付
+ * @param $orderId
+ * @param string $field
+ * @return array|string
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function wxPay($orderId,$field = 'order_id')
{
if(is_string($orderId))
@@ -455,7 +596,10 @@ class StoreOrder extends BaseModel
if($orderInfo['paid']) exception('支付已支付!');
if($orderInfo['pay_price'] <= 0) exception('该支付无需支付!');
$openid = WechatUser::uidToOpenid($orderInfo['uid'],'openid');
- return WechatService::jsPay($openid,$orderInfo['order_id'],$orderInfo['pay_price'],'product',SystemConfigService::get('site_name'));
+ $bodyContent = self::getProductTitle($orderInfo['cart_id']);
+ $site_name = SystemConfigService::get('site_name');
+ if(!$bodyContent && !$site_name) exception('支付参数缺少:请前往后台设置->系统设置-> 填写 网站名称');
+ return WechatService::jsPay($openid,$orderInfo['order_id'],$orderInfo['pay_price'],'product',self::getSubstrUTf8($site_name.' - '.$bodyContent,30));
}
/**
@@ -476,10 +620,24 @@ class StoreOrder extends BaseModel
if(!$orderInfo || !isset($orderInfo['paid'])) exception('支付订单不存在!');
if($orderInfo['paid']) exception('支付已支付!');
if($orderInfo['pay_price'] <= 0) exception('该支付无需支付!');
- return WechatService::paymentPrepare(null,$orderInfo['order_id'],$orderInfo['pay_price'],'product',SystemConfigService::get('site_name'),'','MWEB');
+ $bodyContent = self::getProductTitle($orderInfo['cart_id']);
+ $site_name = SystemConfigService::get('site_name');
+ if(!$bodyContent && !$site_name) exception('支付参数缺少:请前往后台设置->系统设置-> 填写 网站名称');
+ return WechatService::paymentPrepare(null,$orderInfo['order_id'],$orderInfo['pay_price'],'product',self::getSubstrUTf8($site_name.' - '.$bodyContent,30),'','MWEB');
}
- //TODO 余额支付
+
+ /**
+ * 余额支付
+ * @param $order_id
+ * @param $uid
+ * @param string $formId
+ * @return bool
+ * @throws \think\Exception
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function yuePay($order_id, $uid, $formId = '')
{
$orderInfo = self::where('uid', $uid)->where('order_id', $order_id)->where('is_del', 0)->find();
@@ -572,6 +730,7 @@ class StoreOrder extends BaseModel
}
ChannelService::instance()->send('NEW_REFUND_ORDER', ['order_id'=>$order['order_id']]);
}catch (\Exception $e){}
+ event('ShortMssageSend',[$order['order_id'],'AdminRefund']);
return true;
}
}
@@ -614,11 +773,16 @@ class StoreOrder extends BaseModel
RoutineTemplate::sendOrderSuccess($formId, $orderId);
CustomerService::sendOrderPaySuccessCustomerService($order, 0);
}
+ //向后台发送新订单消息
ChannelService::instance()->send('NEW_ORDER', ['order_id'=>$orderId]);
}catch (\Exception $e){}
$user = User::where('uid', $order['uid'])->find()->toArray();
+ //检测会员等级
event('UserLevelAfter', [$user]);
+ //支付成功后
event('OrderPaySuccess', [$order]);
+ //短信通知 下发用户支付成功 下发管理员支付通知
+ event('ShortMssageSend',[$order['order_id'],['PaySuccess','AdminPaySuccess']]);
$res = $res1 && $resPink;
return false !== $res;
}
@@ -648,6 +812,15 @@ class StoreOrder extends BaseModel
// ]);
}
+ /**
+ * 获取订单详情
+ * @param $uid
+ * @param $key
+ * @return array|\think\Model|null
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function getUserOrderDetail($uid, $key)
{
return self::where('order_id|unique', $key)->where('uid', $uid)->where('is_del', 0)->find();
@@ -692,19 +865,7 @@ class StoreOrder extends BaseModel
*/
public static function orderTakeAfter($order)
{
- $title = '';
- $cartInfo = StoreOrderCartInfo::where('oid', $order['id'])->column('cart_info');
- if (count($cartInfo)) {
- foreach ($cartInfo as $key => &$cart) {
- $cart = json_decode($cart, true);
- $title .= $cart['productInfo']['store_name'] . ',';
- }
- }
- if (strlen(trim($title))) $title = substr($title, 0, bcsub(strlen($title), 1, 0));
- else {
- $cartInfo = StoreCart::alias('a')->where('a.id', 'in', implode(',', json_decode($order['cart_id'], true)))->find();
- $title = StoreProduct::getProductField($cartInfo['product_id'], 'store_name');
- }
+ $title=self::getProductTitle($order['cart_id']);
if ($order['is_channel']) {//小程序
RoutineTemplate::sendOut('OREDER_TAKEVER', $order['uid'], [
'keyword1' => $order['order_id'],
@@ -772,6 +933,8 @@ class StoreOrder extends BaseModel
}
self::commitTrans();
event('UserOrderTake', $uni);
+ //短信通知
+ event('ShortMssageSend',[$order['order_id'],['Receiving','AdminConfirmTakeOver']]);
return true;
} else {
self::rollbackTrans();
@@ -779,6 +942,16 @@ class StoreOrder extends BaseModel
}
}
+ /**
+ * 获取订单状态购物车等信息
+ * @param $order
+ * @param bool $detail 是否获取订单购物车详情
+ * @param bool $isPic 是否获取订单状态图片
+ * @return mixed
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function tidyOrder($order, $detail = false, $isPic = false)
{
if ($detail == true && isset($order['id'])) {
@@ -850,10 +1023,17 @@ class StoreOrder extends BaseModel
$status['_class'] = 'state-nfh';
}
} else {
- $status['_type'] = 1;
- $status['_title'] = '未发货';
- $status['_msg'] = '商家未发货,请耐心等待';
- $status['_class'] = 'state-nfh';
+ if($order['shipping_type'] === 1){
+ $status['_type'] = 1;
+ $status['_title'] = '未发货';
+ $status['_msg'] = '商家未发货,请耐心等待';
+ $status['_class'] = 'state-nfh';
+ }else{
+ $status['_type'] = 1;
+ $status['_title'] = '待核销';
+ $status['_msg'] = '待核销,请到核销点进行核销';
+ $status['_class'] = 'state-nfh';
+ }
}
} else if ($order['status'] == 1) {
if ($order['delivery_type'] == 'send') {//TODO 送货
@@ -900,6 +1080,13 @@ class StoreOrder extends BaseModel
return $order;
}
+ /**
+ * 设置订单查询状态
+ * @param $status
+ * @param int $uid
+ * @param null $model
+ * @return StoreOrder|null
+ */
public static function statusByWhere($status, $uid = 0, $model = null)
{
// $orderId = StorePink::where('uid',$uid)->where('status',1)->column('order_id','id');//获取正在拼团的订单编号
@@ -929,13 +1116,24 @@ class StoreOrder extends BaseModel
return $model;
}
+ /**
+ * 获取订单并分页
+ * @param $uid
+ * @param string $status
+ * @param int $page
+ * @param int $limit
+ * @return mixed
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function getUserOrderList($uid, $status = '', $page = 0, $limit = 8)
{
if($page) $list = self::statusByWhere($status, $uid)->where('is_del', 0)->where('uid', $uid)
- ->field('add_time,seckill_id,bargain_id,combination_id,id,order_id,pay_price,total_num,total_price,pay_postage,total_postage,paid,status,refund_status,pay_type,coupon_price,deduction_price,pink_id,delivery_type,is_del')
+ ->field('add_time,seckill_id,bargain_id,combination_id,id,order_id,pay_price,total_num,total_price,pay_postage,total_postage,paid,status,refund_status,pay_type,coupon_price,deduction_price,pink_id,delivery_type,is_del,shipping_type')
->order('add_time DESC')->page((int)$page, (int)$limit)->select()->toArray();
else $list = self::statusByWhere($status, $uid)->where('is_del', 0)->where('uid', $uid)
- ->field('add_time,seckill_id,bargain_id,combination_id,id,order_id,pay_price,total_num,total_price,pay_postage,total_postage,paid,status,refund_status,pay_type,coupon_price,deduction_price,pink_id,delivery_type,is_del')
+ ->field('add_time,seckill_id,bargain_id,combination_id,id,order_id,pay_price,total_num,total_price,pay_postage,total_postage,paid,status,refund_status,pay_type,coupon_price,deduction_price,pink_id,delivery_type,is_del,shipping_type')
->order('add_time DESC')->page((int)$page, (int)$limit)->select()->toArray();
foreach ($list as $k => $order) {
$list[$k] = self::tidyOrder($order, true);
@@ -956,9 +1154,18 @@ class StoreOrder extends BaseModel
return $res;
}
+ /**
+ * 搜索某个订单详细信息
+ * @param $uid
+ * @param $order_id
+ * @return bool|mixed
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function searchUserOrder($uid, $order_id)
{
- $order = self::where('uid', $uid)->where('order_id', $order_id)->where('is_del', 0)->field('seckill_id,bargain_id,combination_id,id,order_id,pay_price,total_num,total_price,pay_postage,total_postage,paid,status,refund_status,pay_type,coupon_price,deduction_price,delivery_type')
+ $order = self::where('uid', $uid)->where('order_id', $order_id)->where('is_del', 0)->field('seckill_id,bargain_id,combination_id,id,order_id,pay_price,total_num,total_price,pay_postage,total_postage,paid,status,refund_status,pay_type,coupon_price,deduction_price,delivery_type,shipping_type')
->order('add_time DESC')->find();
if (!$order)
return false;
@@ -967,6 +1174,12 @@ class StoreOrder extends BaseModel
}
+ /**
+ * 订单评价信息记录
+ * @param $oid
+ * @return StoreOrderStatus|\think\Model
+ * @throws \Exception
+ */
public static function orderOver($oid)
{
$res = self::edit(['status' => '3'], $oid, 'id');
@@ -974,6 +1187,12 @@ class StoreOrder extends BaseModel
return StoreOrderStatus::status($oid, 'check_order_over', '用户评价');
}
+ /**
+ * 设置订单产品评价完毕事件
+ * @param $oid
+ * @return StoreOrderStatus|\think\Model
+ * @throws \Exception
+ */
public static function checkOrderOver($oid)
{
$uniqueList = StoreOrderCartInfo::where('oid', $oid)->column('unique', 'unique');
@@ -998,6 +1217,15 @@ class StoreOrder extends BaseModel
return compact('noBuy', 'noPostage', 'noTake', 'noReply', 'noPink', 'noRefund');
}
+ /**
+ * 购买商品赠送积分
+ * @param $order
+ * @return bool
+ * @throws \think\Exception
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function gainUserIntegral($order)
{
if ($order['gain_integral'] > 0) {
@@ -1054,7 +1282,7 @@ class StoreOrder extends BaseModel
}
- /*
+ /**
* 个人中心获取个人订单列表和订单搜索
* @param int $uid 用户uid
* @param int | string 查找订单类型
@@ -1083,7 +1311,7 @@ class StoreOrder extends BaseModel
return $list;
}
- /*
+ /**
* 获取用户下级的订单
* @param int $xuid 下级用户用户uid
* @param int $uid 用户uid
@@ -1187,9 +1415,12 @@ class StoreOrder extends BaseModel
return $data;
}
- /*
+
+ /**
* 累计消费
- * **/
+ * @param $uid
+ * @return float
+ */
public static function getOrderStatusSum($uid)
{
return self::where('uid', $uid)->where('is_del', 0)->where('paid', 1)->sum('pay_price');
@@ -1200,13 +1431,15 @@ class StoreOrder extends BaseModel
return self::where('id', $id)->value('order_id');
}
- /*
+ /**
* 未支付订单自动取消
* @param int $limit 分页截取条数
- * @param $prefid 缓存名称
- * @param $expire 缓存时间
- * */
- public static function orderUnpaidCancel($limit = 10, $prefid = ApiLogs::ORDER_UNPAID_PAGE, $expire = 3600)
+ * @param string $prefid 缓存名称
+ * @param int $expire 缓存时间
+ * @return string|null
+ * @throws \Psr\SimpleCache\InvalidArgumentException
+ */
+ public static function orderUnpaidCancel($limit = 10, $prefid = 'order_unpaid_page', $expire = 3600)
{
//系统预设取消订单时间段
$keyValue = ['order_cancel_time', 'order_activity_time', 'order_bargain_time', 'order_seckill_time', 'order_pink_time'];
@@ -1253,22 +1486,26 @@ class StoreOrder extends BaseModel
return null;
} catch (PDOException $e) {
self::rollbackTrans();
- ApiLogs::writeLog(['file' => $e->getFile(), 'line' => $e->getLine(), 'message' => $e->getMessage()], 's');
+ Log::error('未支付自动取消时发生数据库查询错误,错误原因为:'.$e->getMessage());
return $e->getMessage();
} catch (\think\Exception $e) {
self::rollbackTrans();
- ApiLogs::recodeErrorLog($e);
+ Log::error('未支付自动取消时发生系统错误,错误原因为:'.$e->getMessage());
return $e->getMessage();
}
}
- /*
+
+ /**
* 未支付订单超过预设时间回退所有,如果不设置未支付过期时间,将不取消订单
- * @param int $time 预设时间
- * @param array $order 订单详情
- * @return boolean
- * */
+ * @param $time 预设时间
+ * @param $order 订单详情
+ * @return bool
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
protected static function RegressionAll($time, $order)
{
if ($time == 0) return true;
@@ -1283,13 +1520,14 @@ class StoreOrder extends BaseModel
return true;
}
- /*
+
+ /**
* 格式化数据
- * @param $array 原本数据键
- * @param $array 需要格式化的数据
+ * @param array $array 原本数据键
+ * @param $value 需要格式化的数据
* @param int $default 默认值
- * @return array
- * */
+ * @return mixed
+ */
protected static function setValeTime(array $array, $value, $default = 0)
{
foreach ($array as $item) {
@@ -1361,40 +1599,44 @@ class StoreOrder extends BaseModel
*/
public static function startTakeOrder()
{
- //7天前时间戳
- $systemDeliveryTime = SystemConfigService::get('system_delivery_time') ?? 0;
- //0为取消自动收货功能
- if($systemDeliveryTime == 0) return true;
- $sevenDay = strtotime(date('Y-m-d',strtotime('-'. $systemDeliveryTime .' day')));
- $model = new self;
- $model = $model->alias('o');
- $model = $model->join('StoreOrderStatus s','s.oid=o.id');
- $model = $model->where('o.paid', 1);
- $model = $model->where('s.change_type', 'delivery_goods');
- $model = $model->where('s.change_time', '<',$sevenDay);
- $model = $model->where('o.status', 1);
- $model = $model->where('o.refund_status', 0);
- $model = $model->where('o.is_del', 0);
- $orderInfo = $model->column('id','id');
- if(!count($orderInfo)) return true;
self::beginTrans();
- $res = true;
- foreach ($orderInfo as $key=>&$item){
- $order = self::get($item);
- if($order['status'] == 2) continue;
- if($order['paid'] == 1 && $order['status'] == 1) $data['status'] = 2;
- else if($order['pay_type'] == 'offline') $data['status'] = 2;
- else continue;
- if(!self::edit($data,$item,'id')) continue;
- try{
- OrderRepository::storeProductOrderTakeDeliveryAdmin($order, $item);
- $res = $res && true;
- }catch (\Exception $e){
- $res = $res && false;
+ try{
+ //7天前时间戳
+ $systemDeliveryTime = SystemConfigService::get('system_delivery_time') ?? 0;
+ //0为取消自动收货功能
+ if($systemDeliveryTime == 0) return true;
+ $sevenDay = strtotime(date('Y-m-d H:i:s',strtotime('-'. $systemDeliveryTime .' day')));
+ $model = new self;
+ $model = $model->alias('o');
+ $model = $model->join('StoreOrderStatus s','s.oid=o.id');
+ $model = $model->where('o.paid', 1);
+ $model = $model->where('s.change_type', 'delivery_goods');
+ $model = $model->where('s.change_time', '<',$sevenDay);
+ $model = $model->where('o.status', 1);
+ $model = $model->where('o.refund_status', 0);
+ $model = $model->where('o.is_del', 0);
+ $orderInfo = $model->column('id','id');
+ if(!count($orderInfo)) return true;
+ $res = true;
+ foreach ($orderInfo as $key=>&$item){
+ $order = self::get($item);
+ if($order['status'] == 2) continue;
+ if($order['paid'] == 1 && $order['status'] == 1) $data['status'] = 2;
+ else if($order['pay_type'] == 'offline') $data['status'] = 2;
+ else continue;
+ if(!self::edit($data,$item,'id')) continue;
+ try{
+ OrderRepository::storeProductOrderTakeDeliveryAdmin($order, $item);
+ $res = $res && true;
+ }catch (\Exception $e){
+ $res = $res && false;
+ }
+ $res = $res && StoreOrderStatus::status($item,'take_delivery','已收货[自动收货]');
}
- $res = $res && StoreOrderStatus::status($item,'take_delivery','已收货[自动收货]');
+ self::checkTrans($res);
+ }catch (\Exception $e){
+ self::rollbackTrans();
}
- self::checkTrans($res);
}
/**
@@ -1431,6 +1673,11 @@ class StoreOrder extends BaseModel
return $model->select();
}
+ /**
+ * 前台订单管理订单列表获取
+ * @param $where
+ * @return mixed
+ */
public static function orderList($where){
$model = self::getOrderWhere($where,self::alias('a')->join('user r','r.uid=a.uid','LEFT'),'a.','r')->field('a.id,a.order_id,a.add_time,a.status,a.total_num,a.total_price,a.total_postage,a.pay_price,a.pay_postage,a.paid,a.refund_status,a.remark,a.pay_type');
if($where['order']!=''){
@@ -1442,6 +1689,15 @@ class StoreOrder extends BaseModel
return self::tidyAdminOrder($data);
}
+ /**
+ * 前台订单管理 订单信息设置
+ * @param $data
+ * @param bool $status
+ * @return mixed
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function tidyAdminOrder($data, $status = false)
{
foreach ($data as &$item){
@@ -1701,6 +1957,14 @@ class StoreOrder extends BaseModel
$model = self::getModelTime($where,$model,$aler.'add_time');
return $model;
}
+
+ /**
+ * 设置where条件
+ * @param $status
+ * @param null $model
+ * @param string $alert
+ * @return StoreOrder|null
+ */
public static function statusWhere($status,$model = null,$alert='')
{
if($model == null) $model = new self;
diff --git a/crmeb/app/models/store/StorePink.php b/crmeb/app/models/store/StorePink.php
index 13803165..d06bb4c4 100644
--- a/crmeb/app/models/store/StorePink.php
+++ b/crmeb/app/models/store/StorePink.php
@@ -14,6 +14,7 @@ use app\models\user\WechatUser;
use crmeb\basic\BaseModel;
use crmeb\services\WechatTemplateService;
use crmeb\traits\ModelTrait;
+use think\facade\Log;
use think\facade\Route;
/**
@@ -195,7 +196,7 @@ class StorePink extends BaseModel
$keyword1WeChat = self::where('id|k_id',$pid)->where('uid',$item)->value('order_id');
$keyword2WeChat = self::alias('p')->where('p.id|p.k_id',$pid)->where('p.uid',$item)->join('__store_combination__ c','c.id=p.cid')->value('c.title');
$remarkWeChat = '点击查看订单详情';
- $urlWeChat = Route::buildUrl('order/detail/'.$keyword1WeChat,[],true,true);
+ $urlWeChat = Route::buildUrl('order/detail/'.$keyword1WeChat)->suffix('')->domain(true)->build();
WechatTemplateService::sendTemplate($openid,WechatTemplateService::ORDER_USER_GROUPS_SUCCESS,[
'first'=> $firstWeChat,
'keyword1'=> $keyword1WeChat,
@@ -228,7 +229,7 @@ class StorePink extends BaseModel
$routineOpenid = WechatUser::uidToOpenid($uid, 'routine_openid');
if($isRemove){
if($openid){//公众号发送模板消息
- $urlWeChat = Route::buildUrl('order/detail/'.$pink->order_id,[],true,true);
+ $urlWeChat = Route::buildUrl('order/detail/'.$pink->order_id)->suffix('')->domain(true)->build();
WechatTemplateService::sendTemplate($openid,WechatTemplateService::ORDER_USER_GROUPS_LOSE,[
'first'=>'亲,您的拼团取消',
'keyword1'=> $store->title,
@@ -245,7 +246,7 @@ class StorePink extends BaseModel
}
}else{
if($openid){//公众号发送模板消息
- $urlWeChat = Route::buildUrl('order/detail/'.$pink->order_id,[],true,true);
+ $urlWeChat = Route::buildUrl('order/detail/'.$pink->order_id)->suffix('')->domain(true)->build();
WechatTemplateService::sendTemplate($openid,WechatTemplateService::ORDER_USER_GROUPS_LOSE,[
'first'=>'亲,您的拼团失败',
'keyword1'=> $store->title,
@@ -384,93 +385,95 @@ class StorePink extends BaseModel
$order = StoreOrder::tidyOrder($order,true)->toArray();
$openid = WechatUser::uidToOpenid($order['uid'], 'openid');
$routineOpenid = WechatUser::uidToOpenid($order['uid'], 'routine_openid');
- $productTitle = StoreCombination::where('id',$order['combination_id'])->value('title');
- if($order['pink_id']){//拼团存在
- $res = false;
- $pink['uid'] = $order['uid'];//用户id
- if(self::isPinkBe($pink,$order['pink_id'])) return false;
- $pink['order_id'] = $order['order_id'];//订单id 生成
- $pink['order_id_key'] = $order['id'];//订单id 数据库id
- $pink['total_num'] = $order['total_num'];//购买个数
- $pink['total_price'] = $order['pay_price'];//总金额
- $pink['k_id'] = $order['pink_id'];//拼团id
- foreach ($order['cartInfo'] as $v){
- $pink['cid'] = $v['combination_id'];//拼团产品id
- $pink['pid'] = $v['product_id'];//产品id
- $pink['people'] = StoreCombination::where('id',$v['combination_id'])->value('people');//几人拼团
- $pink['price'] = $v['productInfo']['price'];//单价
- $pink['stop_time'] = 0;//结束时间
- $pink['add_time'] = time();//开团时间
- $res = self::create($pink)->toArray();
+ $product = StoreCombination::where('id',$order['combination_id'])->field('effective_time,title')->find();
+ if($product){
+ if($order['pink_id']){//拼团存在
+ $res = false;
+ $pink['uid'] = $order['uid'];//用户id
+ if(self::isPinkBe($pink,$order['pink_id'])) return false;
+ $pink['order_id'] = $order['order_id'];//订单id 生成
+ $pink['order_id_key'] = $order['id'];//订单id 数据库id
+ $pink['total_num'] = $order['total_num'];//购买个数
+ $pink['total_price'] = $order['pay_price'];//总金额
+ $pink['k_id'] = $order['pink_id'];//拼团id
+ foreach ($order['cartInfo'] as $v){
+ $pink['cid'] = $v['combination_id'];//拼团产品id
+ $pink['pid'] = $v['product_id'];//产品id
+ $pink['people'] = StoreCombination::where('id',$v['combination_id'])->value('people');//几人拼团
+ $pink['price'] = $v['productInfo']['price'];//单价
+ $pink['stop_time'] = 0;//结束时间
+ $pink['add_time'] = time();//开团时间
+ $res = self::create($pink)->toArray();
+ }
+ if($openid){ //公众号模板消息
+ $urlWeChat = Route::buildUrl('order/detail/'.$order['order_id'])->suffix('')->domain(true)->build();
+ WechatTemplateService::sendTemplate($openid,WechatTemplateService::ORDER_USER_GROUPS_SUCCESS,[
+ 'first'=> '亲,您已成功参与拼团',
+ 'keyword1'=> $order['order_id'],
+ 'keyword2'=> $product->title,
+ 'remark'=> '点击查看订单详情'
+ ],$urlWeChat);
+ }else if($routineOpenid){
+ RoutineTemplate::sendOut('PINK_TRUE',$order['uid'],[
+ 'keyword1'=>$product->title,
+ 'keyword2'=>User::where('uid',self::where('id',$pink['k_id'])->value('uid'))->value('nickname'),
+ 'keyword3'=>date('Y-m-d H:i:s',$pink['add_time']),
+ 'keyword3'=>$pink['total_price'],
+ ],'','/pages/order_details/index?order_id='.$pink['order_id']);
+ }
+ //处理拼团完成
+ list($pinkAll,$pinkT,$count,$idAll,$uidAll)=self::getPinkMemberAndPinkK($pink);
+ if($pinkT['status']==1){
+ if(!$count)//组团完成
+ self::PinkComplete($uidAll,$idAll,$pink['uid'],$pinkT);
+ else
+ self::PinkFail($pinkAll,$pinkT,0);
+ }
+ if($res) return true;
+ else return false;
+ }else{
+ $res = false;
+ $pink['uid'] = $order['uid'];//用户id
+ $pink['order_id'] = $order['order_id'];//订单id 生成
+ $pink['order_id_key'] = $order['id'];//订单id 数据库id
+ $pink['total_num'] = $order['total_num'];//购买个数
+ $pink['total_price'] = $order['pay_price'];//总金额
+ $pink['k_id'] = 0;//拼团id
+ foreach ($order['cartInfo'] as $v){
+ $pink['cid'] = $v['combination_id'];//拼团产品id
+ $pink['pid'] = $v['product_id'];//产品id
+ $pink['people'] = StoreCombination::where('id',$v['combination_id'])->value('people');//几人拼团
+ $pink['price'] = $v['productInfo']['price'];//单价
+ $pink['stop_time'] = bcadd(time(),bcmul($product->effective_time,3600,0),0);//结束时间
+ $pink['add_time'] = time();//开团时间
+ $res1 = self::create($pink)->toArray();
+ $res2 = StoreOrder::where('id',$order['id'])->update(['pink_id'=>$res1['id']]);
+ $res = $res1 && $res2;
+ }
+ // 开团成功发送模板消息
+ if($openid && !$order['is_channel']){ //公众号模板消息
+ $urlWeChat = Route::buildUrl('/order/detail/'.$pink['order_id'])->suffix('')->domain(true)->build();
+ WechatTemplateService::sendTemplate($openid,WechatTemplateService::OPEN_PINK_SUCCESS,[
+ 'first'=> '您好,您已成功开团!赶紧与小伙伴们分享吧!!!',
+ 'keyword1'=> $product->title,
+ 'keyword2'=> $pink['total_price'],
+ 'keyword3'=> $pink['people'],
+ 'remark'=> '点击查看订单详情'
+ ],$urlWeChat);
+ }else if($routineOpenid && $order['is_channel']){
+ RoutineTemplate::sendOut('OPEN_PINK_SUCCESS',$order['uid'],[
+ 'keyword1'=>date('Y-m-d H:i:s',$pink['add_time']),
+ 'keyword2'=>date('Y-m-d H:i:s',$pink['stop_time']),
+ 'keyword3'=>$product->title,
+ 'keyword4'=>$pink['order_id'],
+ 'keyword4'=>$pink['total_price'],
+ ],'','/pages/order_details/index?order_id='.$pink['order_id']);
+ }
+ if($res) return true;
+ else return false;
}
- if($openid){ //公众号模板消息
- $urlWeChat = Route::buildUrl('order/detail/'.$order['order_id'],[],true,true);
- WechatTemplateService::sendTemplate($openid,WechatTemplateService::ORDER_USER_GROUPS_SUCCESS,[
- 'first'=> '亲,您已成功参与拼团',
- 'keyword1'=> $order['order_id'],
- 'keyword2'=> $productTitle,
- 'remark'=> '点击查看订单详情'
- ],$urlWeChat);
- }else if($routineOpenid){
- RoutineTemplate::sendOut('PINK_TRUE',$order['uid'],[
- 'keyword1'=>$productTitle,
- 'keyword2'=>User::where('uid',self::where('id',$pink['k_id'])->value('uid'))->value('nickname'),
- 'keyword3'=>date('Y-m-d H:i:s',$pink['add_time']),
- 'keyword3'=>$pink['total_price'],
- ],'','/pages/order_details/index?order_id='.$pink['order_id']);
- }
- //处理拼团完成
- list($pinkAll,$pinkT,$count,$idAll,$uidAll)=self::getPinkMemberAndPinkK($pink);
- if($pinkT['status']==1){
- if(!$count)//组团完成
- self::PinkComplete($uidAll,$idAll,$pink['uid'],$pinkT);
- else
- self::PinkFail($pinkAll,$pinkT,0);
- }
- if($res) return true;
- else return false;
}else{
- $res = false;
- $pink['uid'] = $order['uid'];//用户id
- $pink['order_id'] = $order['order_id'];//订单id 生成
- $pink['order_id_key'] = $order['id'];//订单id 数据库id
- $pink['total_num'] = $order['total_num'];//购买个数
- $pink['total_price'] = $order['pay_price'];//总金额
- $pink['k_id'] = 0;//拼团id
- foreach ($order['cartInfo'] as $v){
- $pink['cid'] = $v['combination_id'];//拼团产品id
- $pink['pid'] = $v['product_id'];//产品id
- $pink['people'] = StoreCombination::where('id',$v['combination_id'])->value('people');//几人拼团
- $pink['price'] = $v['productInfo']['price'];//单价
-// $stopTime = StoreCombination::where('id',$v['combination_id'])->value('stop_time');//获取拼团产品结束的时间
-// if($stopTime < time()+86400) $pink['stop_time'] = $stopTime;//结束时间
- $pink['stop_time'] = time()+86400;//结束时间
- $pink['add_time'] = time();//开团时间
- $res1 = self::create($pink)->toArray();
- $res2 = StoreOrder::where('id',$order['id'])->update(['pink_id'=>$res1['id']]);
- $res = $res1 && $res2;
- }
- // 开团成功发送模板消息
- if($openid){ //公众号模板消息
- $urlWeChat = Route::buildUrl('order/detail/'.$pink['order_id'],[],true,true);
- WechatTemplateService::sendTemplate($openid,WechatTemplateService::OPEN_PINK_SUCCESS,[
- 'first'=> '您好,您已成功开团!赶紧与小伙伴们分享吧!!!',
- 'keyword1'=> $productTitle,
- 'keyword2'=> $pink['total_price'],
- 'keyword3'=> $pink['people'],
- 'remark'=> '点击查看订单详情'
- ],$urlWeChat);
- }else if($routineOpenid){
- RoutineTemplate::sendOut('OPEN_PINK_SUCCESS',$order['uid'],[
- 'keyword1'=>date('Y-m-d H:i:s',$pink['add_time']),
- 'keyword2'=>date('Y-m-d H:i:s',$pink['stop_time']),
- 'keyword3'=>$productTitle,
- 'keyword4'=>$pink['order_id'],
- 'keyword4'=>$pink['total_price'],
- ],'','/pages/order_details/index?order_id='.$pink['order_id']);
- }
- if($res) return true;
- else return false;
+ Log::error('拼团支付成功读取产品数据失败订单号:'.$order['order_id']);
}
}
/*
@@ -578,7 +581,7 @@ class StorePink extends BaseModel
$pinkT = $pink;
}
$pinkT = $pinkT->hidden(['order_id','total_price','cid','pid','add_time','k_id','is_tpl','is_refund'])->toArray();
- $pinkAll = $pinkAll->hidden(['order_id','total_price','cid','pid','add_time','k_id','is_tpl','is_refund'])->toArray();
+ $pinkAll = $pinkAll->hidden(['total_price','cid','pid','add_time','k_id','is_tpl','is_refund'])->toArray();
$count = (int)bcadd(count($pinkAll), 1, 0);
$count = (int)bcsub($pinkT['people'], $count, 0);
$idAll = [];
@@ -613,7 +616,7 @@ class StorePink extends BaseModel
try{
list($pinkAll,$pinkT,$count,$idAll,$uidAll)=self::getPinkMemberAndPinkK($pinkT);
if(count($pinkAll)){
- if(self::getPinkPeople($pink_id,$pinkT->people)){
+ if(self::getPinkPeople($pink_id,$pinkT['people'])){
//拼团未完成,拼团有成员取消开团取 紧跟团长后拼团的人
if(isset($pinkAll[0])) $nextPinkT=$pinkAll[0];
}else{
@@ -627,8 +630,7 @@ class StorePink extends BaseModel
$formId = RoutineFormId::getFormIdOne($uid);
if($formId) RoutineFormId::delFormIdOne($formId);
self::orderPinkAfterNo($pinkT['uid'],$pinkT['id'],$formId,'拼团取消开团',true);
- }
- else
+ }else
return self::setErrorInfo(['status'=>200,'msg'=>StoreOrder::getErrorInfo()],true);
//当前团有人的时候
if(is_array($nextPinkT)){
@@ -639,7 +641,7 @@ class StorePink extends BaseModel
self::commitTrans();
return true;
}catch (\Exception $e){
- return self::setErrorInfo($e->getLine().':'.$e->getMessage(),true);
+ return self::setErrorInfo($e->getLine().':'.$e->getMessage().':'.$e->getFile(),true);
}
}
@@ -719,7 +721,7 @@ class StorePink extends BaseModel
$pink = self::where('id|k_id',$pink)->where('uid',$item)->find();
if($openid){
//公众号模板消息
- $urlWeChat = Route::buildUrl('order/detail/'.$pink->order_id,[],true,true);
+ $urlWeChat = Route::buildUrl('order/detail/'.$pink->order_id)->suffix('')->domain(true)->build();
WechatTemplateService::sendTemplate($openid,WechatTemplateService::ORDER_USER_GROUPS_LOSE,[
'first'=>'亲,您的拼团失败',
'keyword1'=> $store->title,
@@ -792,7 +794,7 @@ class StorePink extends BaseModel
$keyword1WeChat = self::where('id|k_id',$pink)->where('uid',$item)->value('order_id');
$keyword2WeChat = self::alias('p')->where('p.id|p.k_id',$pink)->where('p.uid',$item)->join('__store_combination__ c','c.id=p.cid')->value('c.title');
$remarkWeChat = '点击查看订单详情';
- $urlWeChat = Route::buildUrl('order/detail/'.$keyword1WeChat,[],true,true);
+ $urlWeChat = Route::buildUrl('order/detail/'.$keyword1WeChat)->suffix('')->domain(true)->build();
WechatTemplateService::sendTemplate($openid,WechatTemplateService::ORDER_USER_GROUPS_SUCCESS,[
'first'=> $firstWeChat,
'keyword1'=> $keyword1WeChat,
diff --git a/crmeb/app/models/store/StoreProduct.php b/crmeb/app/models/store/StoreProduct.php
index dfdf194c..03abcf2d 100644
--- a/crmeb/app/models/store/StoreProduct.php
+++ b/crmeb/app/models/store/StoreProduct.php
@@ -58,6 +58,11 @@ class StoreProduct extends BaseModel
else return false;
}
+ public static function getGoodList($limit=18,$field='*')
+ {
+ return self::validWhere()->where('is_good',1)->order('sort desc,id desc')->limit($limit)->field($field)->select();
+ }
+
public static function validWhere()
{
return self::where('is_del', 0)->where('is_show', 1)->where('mer_id', 0);
@@ -73,6 +78,7 @@ class StoreProduct extends BaseModel
$news = $data['news'];
$page = $data['page'];
$limit = $data['limit'];
+ $type = $data['type']; // 某些模板需要购物车数量 1 = 需要查询,0 = 不需要
$model = self::validWhere();
if ($sId) {
$product_ids = Db::name('store_product_cate')->where('cate_id', $sId)->column('product_id');
@@ -98,7 +104,14 @@ class StoreProduct extends BaseModel
if ($salesOrder) $baseOrder = $salesOrder == 'desc' ? 'sales DESC' : 'sales ASC';//虚拟销量
if ($baseOrder) $baseOrder .= ', ';
$model->order($baseOrder . 'sort DESC, add_time DESC');
- $list = $model->page((int)$page, (int)$limit)->field('id,store_name,cate_id,image,IFNULL(sales,0) + IFNULL(ficti,0) as sales,price,stock')->select();
+ $list = $model->page((int)$page, (int)$limit)->field('id,store_name,cate_id,image,IFNULL(sales,0) + IFNULL(ficti,0) as sales,price,stock')->select()->each(function ($item) use($uid,$type){
+ if($type) {
+ $item['is_att'] = StoreProductAttrValueModel::where('product_id', $item['id'])->count() ? true : false;
+ if ($uid) $item['cart_num'] = StoreCart::where('is_pay', 0)->where('is_del', 0)->where('is_new', 0)->where('type', 'product')->where('product_id', $item['id'])->where('uid', $uid)->value('cart_num');
+ else $item['cart_num'] = 0;
+ if (is_null($item['cart_num'])) $item['cart_num'] = 0;
+ }
+ });
$list = count($list) ? $list->toArray() : [];
return self::setLevelPrice($list, $uid);
}
@@ -298,7 +311,9 @@ class StoreProduct extends BaseModel
$stock = self::where('id', $productId)->value('stock');
$replenishment_num = SystemConfigService::get('store_stock') ?? 0;//库存预警界限
if($replenishment_num >= $stock){
- ChannelService::instance()->send('STORE_STOCK', ['id'=>$productId]);
+ try{
+ ChannelService::instance()->send('STORE_STOCK', ['id'=>$productId]);
+ }catch (\Exception $e){}
}
}
return $res;
@@ -411,4 +426,17 @@ class StoreProduct extends BaseModel
{
return self::whereIn('id', $productIds)->column('store_name,image', 'id');
}
+ /**
+ * TODO 获取某个字段值
+ * @param $id
+ * @param string $field
+ * @return mixed
+ */
+ public static function getProductField($id,$field = 'store_name'){
+ if(is_array($id))
+ return self::where('id','in',$id)->field($field)->select();
+ else
+ return self::where('id',$id)->value($field);
+ }
+
}
\ No newline at end of file
diff --git a/crmeb/app/models/store/StoreProductAttr.php b/crmeb/app/models/store/StoreProductAttr.php
index 2a222a6a..16a4b5c7 100644
--- a/crmeb/app/models/store/StoreProductAttr.php
+++ b/crmeb/app/models/store/StoreProductAttr.php
@@ -43,12 +43,19 @@ class StoreProductAttr extends BaseModel
* @param $productId
* @return array
*/
- public static function getProductAttrDetail($productId)
+ public static function getProductAttrDetail($productId,$uid=0,$type = 0)
{
$attrDetail = self::where('product_id',$productId)->order('attr_values asc')->select()->toArray()?:[];
$_values = self::storeProductAttrValueDb()->where('product_id',$productId)->select();
$values = [];
foreach ($_values as $value){
+ if($type){
+ if ($uid)
+ $value['cart_num'] = StoreCart::where('product_attr_unique',$value['unique'])->where('is_pay', 0)->where('is_del', 0)->where('is_new', 0)->where('type', 'product')->where('product_id', $productId)->where('uid', $uid)->value('cart_num');
+ else
+ $value['cart_num'] = 0;
+ if (is_null($value['cart_num'])) $value['cart_num'] = 0;
+ }
$values[$value['suk']] = $value;
}
foreach ($attrDetail as $k=>$v){
diff --git a/crmeb/app/models/system/Cache.php b/crmeb/app/models/system/Cache.php
new file mode 100644
index 00000000..cc48c62c
--- /dev/null
+++ b/crmeb/app/models/system/Cache.php
@@ -0,0 +1,73 @@
+value('result');
+ return json_decode($result,true);
+ }
+
+ /**
+ * 设置数据缓存存在则更新,没有则写入
+ * @param string $key
+ * @param string | array $result
+ * @param int $expire
+ * @return void
+ */
+ public static function setDbCache(string $key,$result,$expire = self::EXPIRE)
+ {
+ self::delectDeOverdueDbCache();
+ $addTime = $expire ? time() + $expire : 0;
+ if(self::be(['key'=>$key])){
+ return self::where(['key'=>$key])->update(['result'=>json_encode($result),'add_time'=>$addTime]);
+ }else{
+ return self::create(['key'=>$key,'result'=>json_encode($result),'add_time'=>$addTime]);
+ }
+ }
+
+ /**
+ * 删除失效缓存
+ */
+ public static function delectDeOverdueDbCache()
+ {
+ return self::where('add_time','<>',0)->where('add_time','<',time())->delete();
+ }
+
+ /**
+ * 删除某个缓存
+ * @param string $key
+ */
+ public static function delectDbCache(string $key = '')
+ {
+ if($key)
+ return self::where('key',$key)->delete();
+ else
+ return self::delete();
+ }
+
+}
\ No newline at end of file
diff --git a/crmeb/app/models/system/SystemStore.php b/crmeb/app/models/system/SystemStore.php
new file mode 100644
index 00000000..3bf6195c
--- /dev/null
+++ b/crmeb/app/models/system/SystemStore.php
@@ -0,0 +1,62 @@
+where('is_del',0);
+ }
+ /*
+ * 获取门店信息
+ * @param int $id
+ * */
+ public static function getStoreDispose($id = 0,$felid='')
+ {
+ if($id)
+ $storeInfo = self::verificWhere()->where('id',$id)->find();
+ else
+ $storeInfo = self::verificWhere()->find();
+ if($storeInfo) {
+ $storeInfo['latlng'] = self::getLatlngAttr(null, $storeInfo);
+ $storeInfo['valid_time'] = $storeInfo['valid_time'] ? explode(' - ', $storeInfo['valid_time']) : [];
+ $storeInfo['_valid_time'] = str_replace('-','/',$storeInfo['valid_time'][0].' ~ '.$storeInfo['valid_time'][1]);
+ $storeInfo['day_time'] = $storeInfo['day_time'] ? str_replace(' - ',' ~ ',$storeInfo['day_time']) : [];
+ $storeInfo['_detailed_address'] = $storeInfo['address'].' '.$storeInfo['detailed_address'];
+ $storeInfo['address'] = $storeInfo['address'] ? explode(',', $storeInfo['address']) : [];
+ if($felid) return $storeInfo[$felid] ?? '';
+ }
+ return $storeInfo;
+ }
+
+}
\ No newline at end of file
diff --git a/crmeb/app/models/system/SystemUserLevel.php b/crmeb/app/models/system/SystemUserLevel.php
index 548290e1..95766713 100644
--- a/crmeb/app/models/system/SystemUserLevel.php
+++ b/crmeb/app/models/system/SystemUserLevel.php
@@ -61,12 +61,16 @@ class SystemUserLevel extends BaseModel
return $model->value('discount');
}
- /*
+
+ /**
* 获取用户等级和当前等级
- * @param int $uid 用户uid
- * @param Boolean $isArray 是否查找任务列表
- * @return array
- * */
+ * @param $uid 用户uid
+ * @param bool $isArray 是否查找任务列表
+ * @return array|bool|mixed|string|\think\Model|null
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function getLevelInfo($uid,$isArray=false){
$level = ['id'=>0];
$task = [];
@@ -78,52 +82,69 @@ class SystemUserLevel extends BaseModel
else return $level['id'] && $id !== false ? $level : false;
}
- /*
+ /**
* 获取会员等级级别
- * @param int $leval_id 等级id
- * @return Array
- * */
+ * @param $leval_id 等级id
+ * @return mixed
+ */
public static function getLevelGrade($leval_id)
{
return self::setWhere()->where('id',$leval_id)->value('grade');
}
- /*
+
+ /**
* 获取会员等级列表
- * @param int $levael_id 用户等级
- * @param Boolean $isArray 是否查找任务列表
- * @return Array
- * */
- public static function getLevelListAndGrade($leval_id,$isArray,$expire=1400)
+ * @param $leval_id 用户等级
+ * @param $isArray 是否查找任务列表
+ * @param int $expire
+ * @return array|\think\Collection
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
+ public static function getLevelListAndGrade($leval_id,$isArray)
{
$grade = 0;
- if(!$leval_id) $leval_id = self::setWhere()->where('grade', self::setWhere()->min('grade'))->order('add_time DESC')->value('id');
+ if(!$leval_id && !$isArray) $leval_id = self::setWhere()->where('grade', self::setWhere()->min('grade'))->order('add_time DESC')->value('id');
$list = self::setWhere()->field('name,discount,image,icon,explain,id,grade')->order('grade asc')->select();
$list = count($list) ? $list->toArray() : [];
foreach ($list as $item){
- if($item['id'] == $leval_id) $grade = $item['grade'];
- if($isArray) $item['task_list'] = SystemUserTask::getTashList($item['id']);
+ if($item['id'] == $leval_id)
+ $grade = $item['grade'];
+
+ if($isArray)
+ $item['task_list'] = SystemUserTask::getTashList($item['id']);
}
- foreach ($list as &$item){
- if($grade <= $item['grade']) $item['is_clear']=true;
- else $item['is_clear']=false;
+ foreach ($list as &$item) {
+ if($grade < $item['grade'])
+ $item['is_clear'] = true;
+ else
+ $item['is_clear'] = false;
}
return $list;
}
+ /**
+ *
+ * @param $leval_id
+ * @param null $list
+ * @return bool
+ */
public static function getClear($leval_id,$list=null)
{
- $list=$list===null ? self::getLevelListAndGrade($leval_id,false) : $list;
+ $list= $list === null ? self::getLevelListAndGrade($leval_id,false) : $list;
foreach ($list as $item){
- if($item['id']==$leval_id) return $item['is_clear'];
+ if($item['id'] == $leval_id) return $item['is_clear'];
}
return false;
}
- /*
+
+ /**
* 获取当前vipid 的下一个会员id
- * @param int $leval_id 当前用户的会员id
- * @return int
- * */
+ * @param $leval_id 当前用户的会员id
+ * @return int|mixed
+ */
public static function getNextLevelId($leval_id)
{
$list=self::getLevelListAndGrade($leval_id,false);
@@ -138,11 +159,11 @@ class SystemUserLevel extends BaseModel
return isset($leveal[0]) ? $leveal[0] : 0;
}
- /*
+ /**
* 获取会员等级列表
- * @parma int $uid 用户uid
- * @return Array
- * */
+ * @param $uid
+ * @return array
+ */
public static function getLevelList($uid){
list($list,$task) = self::getLevelInfo($uid,true);
return ['list'=>$list,'task'=>$task];
diff --git a/crmeb/app/models/system/SystemUserTask.php b/crmeb/app/models/system/SystemUserTask.php
index 790f8a9f..5ca54bd6 100644
--- a/crmeb/app/models/system/SystemUserTask.php
+++ b/crmeb/app/models/system/SystemUserTask.php
@@ -30,7 +30,7 @@ class SystemUserTask extends BaseModel
use ModelTrait;
- /*
+ /**
* 任务类型
* type 记录在数据库中用来区分任务
* name 任务名 (任务名中的{$num}会自动替换成设置的数字 + 单位)
@@ -107,7 +107,7 @@ class SystemUserTask extends BaseModel
return self::$TaskType;
}
- /*
+ /**
* 获取某个任务
* @param string $type 任务类型
* @return array
@@ -119,7 +119,7 @@ class SystemUserTask extends BaseModel
}
}
- /*
+ /**
* 设置任务名
* @param string $type 任务类型
* @param int $num 预设值
@@ -131,7 +131,7 @@ class SystemUserTask extends BaseModel
return str_replace('{$num}',$num.$systemType['unit'],$systemType['name']);
}
- /*
+ /**
* 累计消费金额
* @param int $task_id 任务id
* @param int $uid 用户id
@@ -147,7 +147,7 @@ class SystemUserTask extends BaseModel
return ['还需消费{$num}元',$SumPayPrice,$isComplete];
}
- /*
+ /**
* 累计消费次数
* @param int $task_id 任务id
* @param int $uid 用户id
@@ -163,7 +163,7 @@ class SystemUserTask extends BaseModel
return ['还需消费{$num}次',$countPay,$isComplete];
}
- /*
+ /**
* 邀请好友成为会员
* @param int $task_id 任务id
* @param int $uid 用户id
@@ -180,7 +180,7 @@ class SystemUserTask extends BaseModel
return ['还需邀请{$num}人成为会员',$levelCount,$isComplete];
}
- /*
+ /**
* 邀请好友成为下线
* @param int $task_id 任务id
* @param int $uid 用户id
@@ -195,7 +195,7 @@ class SystemUserTask extends BaseModel
return ['还需邀请{$num}人成为下线',$spreadCount,$isComplete];
}
- /*
+ /**
* 满足积分
* @param int $task_id 任务id
* @param int $uid 用户id
@@ -206,12 +206,12 @@ class SystemUserTask extends BaseModel
public static function SatisfactionIntegral($task_id,$uid=0,$start_time=0,$number=0)
{
$isComplete=false;
- $sumNumber=UserBill::where('uid', $uid)->where('category', 'integral')->where('pm', 1)->where('add_time','>',$start_time)->where('type','in',['system_add','sign'])->sum('number');
+ $sumNumber=UserBill::where('uid', $uid)->where('category', 'integral')->where('pm', 1)->where('add_time','>',$start_time)->where('type','in',['system_add','sign','gain'])->sum('number');
if($sumNumber >= $number) $isComplete=UserTaskFinish::setFinish($uid,$task_id) ? true : false;
return ['还需要{$num}经验',$sumNumber,$isComplete];
}
- /*
+ /**
* 分享给朋友次数完成情况
* @param int $task_id 任务id
* @param int $uid 用户id
@@ -227,7 +227,7 @@ class SystemUserTask extends BaseModel
return ['还需分享{$num}次',$sumCount,$isComplete];
}
- /*
+ /**
* 累计签到
* @param int $task_id 任务id
* @param int $uid 用户id
@@ -243,7 +243,7 @@ class SystemUserTask extends BaseModel
return ['还需签到{$num}天',$sumCount,$isComplete];
}
- /*
+ /**
* 设置任务完成情况
* @param int $task_id 任务id
* @param int $uid 用户uid
@@ -268,7 +268,7 @@ class SystemUserTask extends BaseModel
return self::setErrorInfo('没有此任务');
}
- /*
+ /**
* 设置任务显示条件
* @param string $alert 表别名
* @param object $model 模型实例
@@ -281,7 +281,7 @@ class SystemUserTask extends BaseModel
$alert=$alert ? $alert.'.': '';
return $model->where("{$alert}is_show",1);
}
- /*
+ /**
* 获取等级会员任务列表
* @param int $level_id 会员等级id
* @param int $uid 用户id
@@ -306,7 +306,7 @@ class SystemUserTask extends BaseModel
];
}
- /*
+ /**
* 获取未完成任务的详细值
* @param array $item 任务
* @param int $uid 用户id
@@ -345,7 +345,7 @@ class SystemUserTask extends BaseModel
}
- /*
+ /**
* 设置任务完成状态,已被使用
* @param int $level_id 会员id
* @param int $uid 用户id
@@ -357,7 +357,7 @@ class SystemUserTask extends BaseModel
if(!count($taskIds)) return true;
return UserTaskFinish::where('uid',$uid)->where('task_id','in',$taskIds)->update(['status'=>1]);
}
- /*
+ /**
* 检查当前等级是否完成全部任务
* @param int $level_id 会员id
* @param int $uid 用户uid
@@ -385,7 +385,7 @@ class SystemUserTask extends BaseModel
if(SystemUserLevel::be(['id'=>$level_id,'is_pay'=>0])) return false;
return true;
}
- /*
+ /**
* 设置任务内容完成情况
* @param array $task 任务列表
* @param int $uid 用户id
diff --git a/crmeb/app/models/user/User.php b/crmeb/app/models/user/User.php
index 6fc477b7..799b6fd7 100644
--- a/crmeb/app/models/user/User.php
+++ b/crmeb/app/models/user/User.php
@@ -4,6 +4,7 @@
namespace app\models\user;
use app\models\store\StoreOrder;
+use crmeb\services\CacheService;
use crmeb\services\SystemConfigService;
use think\facade\Session;
use crmeb\traits\ModelTrait;
@@ -84,6 +85,15 @@ class User extends BaseModel
return $user['clean_time'] ? $user['clean_time'] : $user['add_time'];
}
+ /**
+ * 更新用户信息
+ * @param $wechatUser 用户信息
+ * @param $uid 用户uid
+ * @return bool|void
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function updateWechatUser($wechatUser,$uid)
{
$userInfo = self::where('uid',$uid)->find();
@@ -108,7 +118,7 @@ class User extends BaseModel
//TODO 获取后台分销类型
$storeBrokerageStatus = SystemConfigService::get('store_brokerage_statu');
$storeBrokerageStatus = $storeBrokerageStatus ? $storeBrokerageStatus : 1;
- if(isset($wechatUser['code']) && $wechatUser['code'] && $wechatUser['code'] != $uid){
+ if(isset($wechatUser['code']) && $wechatUser['code'] && $wechatUser['code'] != $uid && $uid != self::where('uid',$wechatUser['code'])->value('spread_uid')){
if($storeBrokerageStatus == 1){
$spreadCount = self::where('uid',$wechatUser['code'])->count();
if($spreadCount){
@@ -145,6 +155,7 @@ class User extends BaseModel
//没有推广编号直接返回
if(!$spread) return true;
if($spread == $uid) return true;
+ if($uid == self::where('uid',$spread)->value('spread_uid')) return true;
//TODO 获取后台分销类型
$storeBrokerageStatus = SystemConfigService::get('store_brokerage_statu');
$storeBrokerageStatus = $storeBrokerageStatus ? $storeBrokerageStatus : 1;
@@ -173,7 +184,7 @@ class User extends BaseModel
self::beginTrans();
$res1 = true;
if($spread_uid) $res1 = self::where('uid',$spread_uid)->inc('spread_count',1)->update();
- $storeBrokerageStatu = SystemConfigService::get('store_brokerage_statu') ? : 1;//获取后台分销类型
+// $storeBrokerageStatu = SystemConfigService::get('store_brokerage_statu') ? : 1;//获取后台分销类型
$res2 = self::create([
'account'=>'rt'.$routineUser['uid'].time(),
'pwd'=>md5(123456),
@@ -354,13 +365,13 @@ class User extends BaseModel
return $res;
}
- /*
- * 获取推荐人
- * @param int $two_uid
- * @param int $first
- * @param int $limit
- * @return array
- * */
+ /**
+ * 获取推荐人 暂无使用
+ * @param $uid
+ * @param $page
+ * @param $limit
+ * @return mixed
+ */
public static function getSpreadList($uid,$page,$limit)
{
$list=self::where('spread_uid',$uid)->field('uid,nickname,avatar,add_time')->page($page,$limit)->order('add_time DESC')->select();
@@ -374,19 +385,23 @@ class User extends BaseModel
return $data;
}
- /*
+ /**
* 获取某个用户的下级uid
- * @param int $uid 用户uid
+ * @param $uid
* @return array
- * */
+ */
public static function getOneSpreadUid($uid)
{
return self::where('spread_uid',$uid)->column('uid');
}
- /*
+ /**
* 修改个人信息
- * */
+ * @param $avatar 头像
+ * @param $nickname 昵称
+ * @param $uid 用户uid
+ * @return bool
+ */
public static function editUser($avatar,$nickname,$uid)
{
return self::edit(['avatar'=>$avatar,'nickname'=>$nickname],$uid,'uid');
@@ -401,6 +416,10 @@ class User extends BaseModel
return self::where('spread_uid',$uid)->count();
}
+ /**
+ * 修改当前用户的推广人数
+ * @param $uid
+ */
public static function setUserSpreadCount($uid){
self::where('uid',$uid)->update(['spread_count'=>self::getSpreadCount($uid)]);
}
@@ -453,7 +472,7 @@ class User extends BaseModel
if($orderBy==='') $orderBy='u.add_time desc';
$model = $model->alias(' u');
$model = $model->join('StoreOrder o','u.uid=o.uid','LEFT');
- $model = $model->where('u.uid','IN',$uid);
+ $model = $model->where('u.uid','IN',$uid)->where('o.is_del',0)->where('o.is_system_del',0);
$model = $model->field("u.uid,u.nickname,u.avatar,from_unixtime(u.add_time,'%Y/%m/%d') as time,u.spread_count as childCount,COUNT(o.id) as orderCount,SUM(o.pay_price) as numberCount");
if(strlen(trim($keyword))) $model = $model->where('u.nickname|u.phone','like',"%$keyword%");
$model = $model->group('u.uid');
@@ -464,6 +483,15 @@ class User extends BaseModel
else return [];
}
+ /**
+ * 设置用户的上级关系
+ * @param $uid 用户uid
+ * @param $spreadUid 上级用户uid
+ * @return User|bool
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function setSpreadUid($uid,$spreadUid)
{
// 自己不能绑定自己为上级
@@ -561,4 +589,86 @@ class User extends BaseModel
{
return self::be(['account'=>$phone]);
}
+
+
+ /**
+ * 获取推广人
+ * @param $data 查询条件
+ * @return array
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
+ public static function getRankList($data)
+ {
+ switch ($data['type']){
+ case 'week':
+ $startTime = strtotime('this week');
+ $endTime = time();
+ break;
+ case 'month':
+ $startTime = strtotime('last month');
+ $endTime = time();
+ break;
+ }
+ $t4Sql = self::alias('t0')
+ ->field('t0.uid,t0.spread_uid,count(t1.spread_uid) AS count,t0.add_time,t0.nickname,t0.avatar')
+ ->join('user t1','t0.uid = t1.spread_uid','LEFT')
+ ->group('t0.uid')
+ ->fetchSql(true)
+ ->select();
+ $t5Sql = self::alias('t2')
+ ->field('t2.uid,t2.spread_uid,count(t3.spread_uid) AS count,t2.add_time,t2.nickname,t2.avatar')
+ ->join('user t3','t2.uid = t3.spread_uid','LEFT')
+ ->group('t2.uid')
+ ->fetchSql(true)
+ ->select();
+ $list = self::table("($t4Sql)")
+ ->alias('t4')
+ ->join('('.$t5Sql.') t5','t4.uid = t5.spread_uid')
+ ->field('t4.uid, t4.count,t4.nickname,t4.avatar')
+ ->where('t4.count','>',0)
+ ->where('t4.add_time','BETWEEN',[$startTime,$endTime])
+ ->group('t4.uid')
+ ->page($data['page'],$data['limit'])
+ ->order('t4.count,t4.add_time desc')
+ ->select();
+ return count($list) ? $list->toArray() : [];
+ }
+
+ /**
+ * 获取佣金排行
+ * @param $data
+ * @return array
+ */
+ public static function brokerageRank($data){
+ $model = self::where('status',1);
+ switch ($data['type']){
+ case 'week':
+ $model = $model->whereIn('uid',function ($query){
+ $query->name('user_bill')->where('category','now_money')->where('type','brokerage')
+ ->whereWeek('add_time')->field('uid');
+ });
+ break;
+ case 'month':
+ $model = $model->whereIn('uid',function ($query){
+ $query->name('user_bill')->where('category','now_money')->where('type','brokerage')
+ ->whereMonth('add_time')->field('uid');
+ });
+ break;
+ }
+ $users= $model->field('uid,nickname,avatar,brokerage_price')->order('brokerage_price desc')
+ ->page((int)$data['page'],(int)$data['limit'])->select();
+ return count($users) ? $users->toArray() : [];
+ }
+
+ /**
+ * 获取当前用户的佣金排行位置
+ * @param $uid
+ * @return int
+ */
+ public static function currentUserRank($brokerage_price)
+ {
+ return self::where('brokerage_price','>',$brokerage_price)->count('uid');
+ }
}
\ No newline at end of file
diff --git a/crmeb/app/models/user/UserAddress.php b/crmeb/app/models/user/UserAddress.php
index fd6f0ea8..d94abbb2 100644
--- a/crmeb/app/models/user/UserAddress.php
+++ b/crmeb/app/models/user/UserAddress.php
@@ -40,6 +40,12 @@ class UserAddress extends BaseModel
return time();
}
+ /**
+ * 设置默认收货地址
+ * @param $id 地址id
+ * @param $uid 用户uid
+ * @return bool
+ */
public static function setDefaultAddress($id,$uid)
{
self::beginTrans();
@@ -50,6 +56,12 @@ class UserAddress extends BaseModel
return $res;
}
+ /**
+ * 设置用户地址查询初始条件
+ * @param null $model
+ * @param string $prefix
+ * @return \think\Model
+ */
public static function userValidAddressWhere($model=null,$prefix = '')
{
if($prefix) $prefix .='.';
@@ -57,12 +69,32 @@ class UserAddress extends BaseModel
return $model->where("{$prefix}is_del",0);
}
+ /**
+ * 获取用户收货地址并分页
+ * @param $uid 用户uid
+ * @param int $page 页码
+ * @param int $limit 展示条数
+ * @param string $field 展示字段
+ * @return array
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function getUserValidAddressList($uid,$page=1,$limit=8,$field = '*')
{
if($page) return self::userValidAddressWhere()->where('uid',$uid)->order('add_time DESC')->field($field)->page((int)$page,(int)$limit)->select()->toArray()?:[];
else return self::userValidAddressWhere()->where('uid',$uid)->order('add_time DESC')->field($field)->select()->toArray()?:[];
}
+ /**
+ * 获取用户默认收货地址
+ * @param $uid 用户uid
+ * @param string $field 展示字段
+ * @return array|\think\Model|null
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function getUserDefaultAddress($uid,$field = '*')
{
return self::userValidAddressWhere()->where('uid',$uid)->where('is_default',1)->field($field)->find();
diff --git a/crmeb/app/models/user/UserExtract.php b/crmeb/app/models/user/UserExtract.php
index 98539f08..54fb957d 100644
--- a/crmeb/app/models/user/UserExtract.php
+++ b/crmeb/app/models/user/UserExtract.php
@@ -50,12 +50,12 @@ class UserExtract extends BaseModel
1 =>'已提现'
);
- /*
+ /**
* 用户自主提现记录提现记录,后台执行审核
* @param array $userInfo 用户个人信息
* @param array $data 提现详细信息
- * @return boolean
- * */
+ * @return bool
+ */
public static function userExtract($userInfo,$data){
if(!in_array($data['extract_type'],self::$extractType))
return self::setErrorInfo('提现方式不存在');
@@ -135,13 +135,16 @@ class UserExtract extends BaseModel
return self::where('uid',$uid)->where('status',$status)->value('SUM(extract_price)')?:0;
}
- /*
+ /**
* 用户提现记录列表
* @param int $uid 用户uid
* @param int $first 截取行数
* @param int $limit 截取数
- * @return array
- * */
+ * @return \think\Collection
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function extractList($uid,$first = 0,$limit = 8)
{
$list=UserExtract::where('uid',$uid)->order('add_time desc')->limit($first,$limit)->select();
@@ -151,11 +154,11 @@ class UserExtract extends BaseModel
return $list;
}
- /*
- * 获取累计已提现佣金
- * @param int $uid
- * @return float
- * */
+ /**
+ * 获取累计已提现佣金
+ * @param $uid
+ * @return float
+ */
public static function extractSum($uid)
{
return self::where('uid',$uid)->where('status',1)->sum('extract_price');
diff --git a/crmeb/app/models/user/UserLevel.php b/crmeb/app/models/user/UserLevel.php
index ff150842..66fec7a9 100644
--- a/crmeb/app/models/user/UserLevel.php
+++ b/crmeb/app/models/user/UserLevel.php
@@ -27,9 +27,11 @@ class UserLevel extends BaseModel
use ModelTrait;
- /*
- * 获取用户等级人数
- * */
+ /**
+ * 获取用户等级人数
+ * @param $uids
+ * @return int
+ */
public static function setUserLevelCount($uids)
{
$model=new self();
@@ -38,12 +40,12 @@ class UserLevel extends BaseModel
return $model->count();
}
- /*
+ /**
* 设置查询初始化条件
* @param string $alias 表别名
- * @param object $model 模型实例化对象
- * @return object
- * */
+ * @param null $model 模型实例化对象
+ * @return UserLevel
+ */
public static function valiWhere($alias='',$model=null)
{
$model=is_null($model) ? new self() : $model;
@@ -53,12 +55,16 @@ class UserLevel extends BaseModel
}
return $model->where("{$alias}status", 1)->where("{$alias}is_del", 0);
}
- /*
+
+ /**
* 设置会员等级
- * @param int $uid 用户uid
- * @param int $level_id 等级id
- * @return boolean | array
- * */
+ * @param $uid 用户uid
+ * @param $level_id 等级id
+ * @return UserLevel|bool|\think\Model
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function setUserLevel($uid,$level_id){
$vipinfo=SystemUserLevel::get($level_id);
if(!$vipinfo) return false;
@@ -101,11 +107,15 @@ class UserLevel extends BaseModel
}
}
- /*
+ /**
* 获取当前用户会员等级返回当前用户等级id
- * @param int $uid 用户uid
- * @return int 会员id
- * */
+ * @param $uid 用户uid
+ * @param int $grade 会员id
+ * @return bool|mixed
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function getUserLevel($uid,$grade=0)
{
$model = self::valiWhere();
@@ -125,12 +135,15 @@ class UserLevel extends BaseModel
return $level->id;
}
- /*
+ /**
* 获取会员详细信息
- * @param int $id 会员记录id
+ * @param $id 会员记录id
* @param string $keyName 字段名
- * @return array
- * */
+ * @return array|mixed|string|\think\Model|null
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function getUserLevelInfo($id,$keyName=''){
$vipinfo=self::valiWhere('a')->where('a.id',$id)->field('l.id,a.add_time,l.discount,a.level_id,l.name,l.money,l.icon,l.is_pay,l.grade')
->join('__system_user_level__ l','l.id=a.level_id')->find();
@@ -138,20 +151,25 @@ class UserLevel extends BaseModel
return $vipinfo;
}
- /*
+ /**
* 获取当前用户已成为的vip id
- * @param int $uid 用户id
+ * @param $uid 用户id
* @return array
- * */
+ */
public static function getUserLevelIds($uid)
{
return self::valiWhere()->group('level_id')->where('uid',$uid)->order('grade asc')->column('level_id','level_id');
}
-
- /*
+
+ /**
* 检查是否能成为会员
- * @param int $uid 用户
- * */
+ * @param $uid 用户uid
+ * @param bool $leveNowId
+ * @return UserLevel|bool|\think\Model
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function setLevelComplete($uid,$leveNowId=false)
{
$user=User::where('uid',$uid)->find();
diff --git a/crmeb/app/models/user/UserRecharge.php b/crmeb/app/models/user/UserRecharge.php
index 3ff43d67..52762d21 100644
--- a/crmeb/app/models/user/UserRecharge.php
+++ b/crmeb/app/models/user/UserRecharge.php
@@ -40,13 +40,27 @@ class UserRecharge extends BaseModel
return time();
}
+ /**
+ * 创建充值订单
+ * @param $uid
+ * @param $price
+ * @param string $recharge_type
+ * @param int $paid
+ * @return UserRecharge|bool|\think\Model
+ */
public static function addRecharge($uid,$price,$recharge_type = 'weixin',$paid = 0)
{
$order_id = self::getNewOrderId($uid);
+ if(!$order_id) return self::setErrorInfo('订单生成失败!');
$add_time = time();
return self::create(compact('order_id','uid','price','recharge_type','paid','add_time'));
}
+ /**
+ * 生成充值订单号
+ * @param int $uid
+ * @return bool|string
+ */
public static function getNewOrderId($uid = 0)
{
if(!$uid) return false;
@@ -54,6 +68,12 @@ class UserRecharge extends BaseModel
return 'wx' . date('YmdHis', time()) . (10000 + $count + $uid);
}
+ /**
+ * 充值js支付
+ * @param $orderInfo
+ * @return array|string
+ * @throws \Exception
+ */
public static function jsPay($orderInfo)
{
return MiniProgramService::jsPay(WechatUser::uidToOpenid($orderInfo['uid']),$orderInfo['order_id'],$orderInfo['price'],'user_recharge','用户充值');
@@ -99,11 +119,16 @@ class UserRecharge extends BaseModel
return $res;
}
- /*
+ /**
* 导入佣金到余额
- * @param int uid 用户uid
- * @param string $price 导入金额
- * */
+ * @param $uid 用户uid
+ * @param $price 导入金额
+ * @return bool
+ * @throws \think\Exception
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function importNowMoney($uid,$price){
$user = User::getUserInfo($uid);
self::beginTrans();
diff --git a/crmeb/app/models/user/UserSign.php b/crmeb/app/models/user/UserSign.php
index d0eb7cf4..9a5fc2b7 100644
--- a/crmeb/app/models/user/UserSign.php
+++ b/crmeb/app/models/user/UserSign.php
@@ -25,96 +25,83 @@ class UserSign extends BaseModel
protected $name = 'user_sign';
use ModelTrait;
- /*
+
+ /**
* 设置签到数据
- * @param int $uid 用户uid
+ * @param $uid 用户uid
* @param string $title 签到说明
* @param int $number 签到获得积分
* @param int $balance 签到前剩余积分
- * @return object
- * */
+ * @return bool
+ */
public static function setSignData($uid,$title='',$number=0,$balance=0)
{
$add_time=time();
return self::create(compact('uid','title','number','balance','add_time')) && UserBill::income($title,$uid,'integral','sign',$number,0,$balance,$title);
}
- /*
+ /**
* 分页获取用户签到数据
- * @param int $uid 用户uid
- * @param int $page 页码
- * @param int $limit 显示多少条
- * @return array
- * */
+ * @param $uid 用户uid
+ * @param $page 页码
+ * @param $limit 展示条数
+ * @return array|\think\Collection
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function getSignList($uid,$page,$limit)
{
if(!$limit) return [];
- if($page){
- return UserBill::where('a.category','integral')
- ->where('a.type','sign')
- ->where('a.status',1)
- ->where('a.uid',$uid)
- ->alias('a')
- ->join("__user__ u",'u.uid=a.uid')
- ->order('a.add_time desc')
- ->field('FROM_UNIXTIME(a.add_time,"%Y-%m-%d") as add_time,a.title,a.number')
- ->page((int)$page,(int)$limit)
- ->select();
- }else{
- return UserBill::where('a.category','integral')
- ->where('a.type','sign')
- ->where('a.status',1)
- ->where('a.uid',$uid)
- ->alias('a')
- ->join("__user__ u",'u.uid=a.uid')
- ->order('a.add_time desc')
- ->field('FROM_UNIXTIME(a.add_time,"%Y-%m-%d") as add_time,a.title,a.number')
- ->select();
- }
+ $billModel = UserBill::where('a.category','integral')->where('a.type','sign')
+ ->where('a.status',1)->where('a.uid',$uid)->alias('a')
+ ->join("__user__ u",'u.uid=a.uid')
+ ->order('a.add_time desc')->field('FROM_UNIXTIME(a.add_time,"%Y-%m-%d") as add_time,a.title,a.number');
+ if($page) $billModel = $billModel->page((int)$page,(int)$limit);
+ return $billModel->select();
}
- /*
+ /**
* 获取用户累计签到次数
- * @Parma int $uid 用户id
+ * @param $uid
* @return int
- * */
+ */
public static function getSignSumDay($uid)
{
return self::where('uid', $uid)->count();
}
- /*
- * 获取用户今天是否签到
- * @param int $uid
- * */
- public static function getToDayIsSign($uid)
+ /**
+ * 获取用户是否签到
+ * @param $uid
+ * @return bool
+ */
+ public static function getIsSign($uid,string $type = 'today')
{
- return self::where('uid', $uid)->whereTime('add_time','today')->count() ? true : false;
+ return self::where('uid', $uid)->whereTime('add_time',$type)->count() ? true : false;
}
- /*
- * 获取用户昨天是否签到
- * @param int $uid
- * */
- public static function getYesterDayIsSign($uid)
- {
- return self::where('uid', $uid)->whereTime('add_time','yesterday')->count() ? true : false;
- }
-
- /*
+ /**
* 获取签到配置
- * @param string
- * */
+ * @param string $key
+ * @return array
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function getSignSystemList($key='sign_day_num')
{
return \crmeb\services\GroupDataService::getData($key) ? : [];
}
- /*
+ /**
* 用户签到
- * @param int $uid 用户uid
- * @return boolean
- * */
+ * @param $uid
+ * @return bool|int
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\ModelNotFoundException
+ * @throws \think\exception\DbException
+ */
public static function sign($uid)
{
$sign_list=self::getSignSystemList();
@@ -122,7 +109,7 @@ class UserSign extends BaseModel
$user=User::where('uid',$uid)->find();
$sign_num=0;
//检测昨天是否签到
- if(self::getYesterDayIsSign($uid)){
+ if(self::getIsSign($uid,'yesterday')){
if($user->sign_num > (count($sign_list) -1)) $user->sign_num=0;
}else{
//如果昨天没签到,回退到第一天
@@ -138,11 +125,10 @@ class UserSign extends BaseModel
if($user->sign_num == count($sign_list))
$res1 = self::setSignData($uid,'连续签到奖励',$sign_num,$user->integral);
else
-// $res1 = self::setSignData($uid,'用户连续签到第'.(self::getSignSumDay($uid)+1).'天',$sign_num,$user->integral);
$res1 = self::setSignData($uid,'签到奖励',$sign_num,$user->integral);
$res2= User::bcInc($uid,'integral',$sign_num,'uid');
- $res3=$user->save();
- $res = $res1 && $res2 && $res3!==false;
+ $res3= $user->save();
+ $res = $res1 && $res2 && $res3 !== false;
BaseModel::checkTrans($res);
event('UserLevelAfter',[$user]);
if($res)
diff --git a/crmeb/app/models/user/UserTaskFinish.php b/crmeb/app/models/user/UserTaskFinish.php
index 93201f76..d2a419c8 100644
--- a/crmeb/app/models/user/UserTaskFinish.php
+++ b/crmeb/app/models/user/UserTaskFinish.php
@@ -31,12 +31,13 @@ class UserTaskFinish extends BaseModel
protected $name = 'user_task_finish';
use ModelTrait;
- /*
+
+ /**
* 设置任务完成情况
- * @param int $uid 用户uid
- * @param int $task_id 任务id
- * @return Boolean
- * */
+ * @param $uid 用户uid
+ * @param $task_id 任务id
+ * @return UserTaskFinish|bool|\think\Model
+ */
public static function setFinish($uid,$task_id)
{
$add_time=time();
diff --git a/crmeb/app/models/user/UserToken.php b/crmeb/app/models/user/UserToken.php
index 865b53f6..61cfe7f9 100644
--- a/crmeb/app/models/user/UserToken.php
+++ b/crmeb/app/models/user/UserToken.php
@@ -25,6 +25,12 @@ class UserToken extends Model
$token['login_ip'] = app()->request->ip();
}
+ /**
+ * 创建token并且保存
+ * @param User $user
+ * @param $type
+ * @return UserToken
+ */
public static function createToken(User $user, $type): self
{
$tokenInfo = $user->getToken($type);
diff --git a/crmeb/app/models/user/WechatUser.php b/crmeb/app/models/user/WechatUser.php
index aa5d9866..a998283d 100644
--- a/crmeb/app/models/user/WechatUser.php
+++ b/crmeb/app/models/user/WechatUser.php
@@ -35,6 +35,11 @@ class WechatUser extends BaseModel
use ModelTrait;
+ /**
+ * uid获取小程序Openid
+ * @param string $uid
+ * @return bool|mixed
+ */
public static function getOpenId($uid = ''){
if($uid == '') return false;
return self::where('uid',$uid)->value('routine_openid');
@@ -71,43 +76,40 @@ class WechatUser extends BaseModel
* @return mixed
*/
public static function routineOauth($routine){
- $routineInfo['nickname'] = filterEmoji($routine['nickName']);//姓名
- $routineInfo['sex'] = $routine['gender'];//性别
- $routineInfo['language'] = $routine['language'];//语言
- $routineInfo['city'] = $routine['city'];//城市
- $routineInfo['province'] = $routine['province'];//省份
- $routineInfo['country'] = $routine['country'];//国家
- $routineInfo['headimgurl'] = $routine['avatarUrl'];//头像
-// $routineInfo[''] = $routine['code'];//临时登录凭证 是获取用户openid和session_key(会话密匙)
+ $routineInfo['nickname'] = filterEmoji($routine['nickName']);//姓名
+ $routineInfo['sex'] = $routine['gender'];//性别
+ $routineInfo['language'] = $routine['language'];//语言
+ $routineInfo['city'] = $routine['city'];//城市
+ $routineInfo['province'] = $routine['province'];//省份
+ $routineInfo['country'] = $routine['country'];//国家
+ $routineInfo['headimgurl'] = $routine['avatarUrl'];//头像
$routineInfo['routine_openid'] = $routine['openId'];//openid
$routineInfo['session_key'] = $routine['session_key'];//会话密匙
- $routineInfo['unionid'] = $routine['unionId'];//用户在开放平台的唯一标识符
- $routineInfo['user_type'] = 'routine';//用户类型
- $page = '';//跳转小程序的页面
+ $routineInfo['unionid'] = $routine['unionId'];//用户在开放平台的唯一标识符
+ $routineInfo['user_type'] = 'routine';//用户类型
$spid = 0;//绑定关系uid
- $isCOde=false;
+ $isCOde = false;
//获取是否有扫码进小程序
if($routine['code']){
- $info = RoutineQrcode::getRoutineQrcodeFindType($routine['code']);
- if($info){
+ if($info = RoutineQrcode::getRoutineQrcodeFindType($routine['code'])){
$spid = $info['third_id'];
- $page = $info['page'];
$isCOde=true;
- }else{
+ }else
$spid = $routine['spid'];
- }
- }else if($routine['spid']) $spid = $routine['spid'];
+ }else if($routine['spid'])
+ $spid = $routine['spid'];
+
// 判断unionid 存在根据unionid判断
if($routineInfo['unionid'] != '' && ($uid=self::where(['unionid'=>$routineInfo['unionid']])->where('user_type','<>','h5')->value('uid'))){
self::edit($routineInfo,$uid,'uid');
- $routineInfo['code']=$spid;
- $routineInfo['isPromoter']=$isCOde;
+ $routineInfo['code'] = $spid;
+ $routineInfo['isPromoter'] = $isCOde;
if($routine['login_type']) $routineInfo['login_type'] = $routine['login_type'];
User::updateWechatUser($routineInfo,$uid);
}else if($uid = self::where(['routine_openid'=>$routineInfo['routine_openid']])->where('user_type','<>','h5')->value('uid')){ //根据小程序openid判断
self::edit($routineInfo,$uid,'uid');
- $routineInfo['code']=$spid;
- $routineInfo['isPromoter']=$isCOde;
+ $routineInfo['code'] = $spid;
+ $routineInfo['isPromoter'] = $isCOde;
if($routine['login_type']) $routineInfo['login_type'] = $routine['login_type'];
User::updateWechatUser($routineInfo,$uid);
}else{
@@ -116,9 +118,7 @@ class WechatUser extends BaseModel
$res = User::setRoutineUser($routineInfo,$spid);
$uid = $res->uid;
}
- $data['page'] = $page;
- $data['uid'] = $uid;
- return $data;
+ return $uid;
}
/**
* 判断是否是小程序用户
@@ -183,6 +183,10 @@ class WechatUser extends BaseModel
if($couponId) StoreCouponUser::addUserCoupon(self::openidToUid($openid),$couponId);
}
+ /**
+ * 订单金额达到预设金额赠送优惠卷
+ * @param $uid
+ */
public static function userTakeOrderGiveCoupon($uid)
{
$couponId = SystemConfigService::get('store_order_give_coupon');
diff --git a/crmeb/config/app.php b/crmeb/config/app.php
index 57befc0b..160de837 100644
--- a/crmeb/config/app.php
+++ b/crmeb/config/app.php
@@ -38,7 +38,7 @@ return [
'default_timezone' => 'Asia/Shanghai',
// 异常页面的模板文件
- 'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl',
+ 'exception_tmpl' => app()->getRootPath() . 'public/static/exception.tpl',
// 错误显示信息,非调试模式有效
'error_message' => '页面错误!请稍后再试~',
diff --git a/crmeb/config/cache.php b/crmeb/config/cache.php
index 76ca27b1..b406632a 100644
--- a/crmeb/config/cache.php
+++ b/crmeb/config/cache.php
@@ -28,7 +28,7 @@ return [
// 缓存前缀
'prefix' => '',
// 缓存有效期 0表示永久缓存
- 'expire' => 0,
+ 'expire' => 0,
// 缓存标签前缀
'tag_prefix' => 'tag:',
// 序列化机制 例如 ['serialize', 'unserialize']
diff --git a/crmeb/config/session.php b/crmeb/config/session.php
index 7a2527a7..d9727009 100644
--- a/crmeb/config/session.php
+++ b/crmeb/config/session.php
@@ -21,7 +21,7 @@ return [
// 驱动方式 支持file redis memcache memcached
'type' => 'file',
// 过期时间
- 'expire' => 0,
+ 'expire' => 10800,
// 前缀
'prefix' => '',
];
diff --git a/crmeb/crmeb/exceptions/AuthException.php b/crmeb/crmeb/exceptions/AuthException.php
index 0fa9aa3e..77a49e90 100644
--- a/crmeb/crmeb/exceptions/AuthException.php
+++ b/crmeb/crmeb/exceptions/AuthException.php
@@ -6,7 +6,20 @@ namespace crmeb\exceptions;
use Throwable;
-class AuthException extends \Exception
+/**
+ * Class AuthException
+ * @package crmeb\exceptions
+ */
+class AuthException extends \RuntimeException
{
+ public function __construct($message = "", $code = 0, Throwable $previous = null)
+ {
+ if(is_array($message)){
+ $errInfo = $message;
+ $message = $errInfo[0] ?? '未知错误';
+ $code = $errInfo[1] ?? 400;
+ }
+ parent::__construct($message, $code, $previous);
+ }
}
\ No newline at end of file
diff --git a/crmeb/crmeb/interfaces/ProviderInterface.php b/crmeb/crmeb/interfaces/ProviderInterface.php
index de005f3c..812ebf94 100644
--- a/crmeb/crmeb/interfaces/ProviderInterface.php
+++ b/crmeb/crmeb/interfaces/ProviderInterface.php
@@ -1,22 +1,11 @@
getConstants();
+ if ($code) return isset($stants[$code]) ? $stants[$code] : '';
+ else return $stants;
+ }
+
private static function auto()
{
self::$SMSAccount = SystemConfigService::get('sms_account');
diff --git a/crmeb/crmeb/services/UploadService.php b/crmeb/crmeb/services/UploadService.php
index 39cc407e..2b5a1231 100644
--- a/crmeb/crmeb/services/UploadService.php
+++ b/crmeb/crmeb/services/UploadService.php
@@ -17,11 +17,130 @@ use think\File;
class UploadService
{
+ /**
+ * 文件校验
+ * @var bool
+ */
+ protected $autoValidate = false;
+ /**
+ * 上传路径
+ * @var string
+ */
+ protected $uploadPath;
+
+ /**
+ * 上传类型
+ * @var int
+ */
+ protected $uploadType;
+
+ /**
+ * 发生错误时是否返回错误信息
+ * @var bool
+ */
+ protected $returnErr = false;
+
+ /**
+ * 上传文件返回数组初始值
+ * @var array
+ */
+ protected $uploadInfo = [
+ 'name' => '',
+ 'size' => 0,
+ 'type' => 'image/jpeg',
+ 'dir' => '',
+ 'thumb_path'=> '',
+ 'image_type'=> '',
+ 'time' => 0,
+ ];
+
+ /**
+ * 上传信息
+ * @var object
+ */
private static $uploadStatus;
- //上传图片的大小 2MB 单位字节
- private static $imageValidate = 'filesize:2097152|fileExt:jpg,jpeg,png,gif|fileMime:image/jpeg,image/gif,image/png';
+ /**
+ * 本类实例化
+ * @var
+ */
+ protected static $instance;
+
+ /**
+ * 上传图片的大小 2MB 单位字节
+ * @var string
+ */
+ protected $imageValidate = 'filesize:2097152|fileExt:jpg,jpeg,png,gif,pem|fileMime:image/jpeg,image/gif,image/png,text/plain';
+
+ protected function __construct()
+ {
+ self::init();
+ }
+
+ /**
+ * @return UploadService
+ */
+ public static function getInstance()
+ {
+ if(is_null(self::$instance)) self::$instance = new self();
+ return self::$instance;
+ }
+
+ /**
+ * 设置上传图片大小等验证信息
+ * @param string $imageValidate
+ * @return $this
+ */
+ public function setImageValidate(string $imageValidate)
+ {
+ $this->imageValidate = $imageValidate;
+ return $this;
+ }
+
+ /**
+ * 设置是否校验上传文件
+ * @param bool $autoValidate
+ * @return $this
+ */
+ public function setAutoValidate(bool $autoValidate)
+ {
+ $this->autoValidate = $autoValidate;
+ return $this;
+ }
+
+ /**
+ * 设置上传路径
+ * @param string $uploadPath
+ * @return $this
+ */
+ public function setUploadPath(string $uploadPath)
+ {
+ $this->uploadPath = $uploadPath;
+ return $this;
+ }
+
+ /**
+ * 设置上传类型
+ * @param int $uploadType
+ * @return $this
+ */
+ public function setUploadType(int $uploadType)
+ {
+ $this->uploadType = $uploadType;
+ return $this;
+ }
+
+ /**
+ * 设置发生错误时是否返回错误信息
+ * @param bool $returnErr
+ * @return $this
+ */
+ public function serReturnErr(bool $returnErr)
+ {
+ $this->returnErr = $returnErr;
+ return $this;
+ }
/**
* 初始化
@@ -51,16 +170,7 @@ class UploadService
protected static function successful($path)
{
self::$uploadStatus->status = true;
-// $filePath = DS . $path . DS . $fileInfo->getSaveName();
self::$uploadStatus->filePath = '/uploads/' . $path;
-// self::$uploadStatus->fileInfo = $fileInfo;
-// self::$uploadStatus->uploadPath = $path;
-// if(strpos(app()->getRootPath().'public'.DS,'public') !== false){
-// self::$uploadStatus->dir = $filePath;
-// }else{
-// self::$uploadStatus->dir = str_replace('/public','',$filePath);
-// }
-// self::$uploadStatus->status = true;
return self::$uploadStatus;
}
@@ -74,15 +184,6 @@ class UploadService
return is_dir($dir) == true || mkdir($dir, 0777, true) == true;
}
- /**
- * 开启/关闭上出文件验证
- * @param bool $bool
- */
- protected static function autoValidate($bool = false)
- {
- self::$autoValidate = $bool;
- }
-
/**
* 生成上传文件目录
* @param $path
@@ -98,144 +199,151 @@ class UploadService
/**
* 单图上传
* @param string $fileName 上传文件名
- * @param string $path 上传路径
- * @param bool $moveName 生成文件名
- * @param bool $autoValidate 是否开启文件验证
- * @param null $root 上传根目录路径
- * @param string $rule 文件名自动生成规则
- * @param int $type
* @return mixed
*/
- public static function image($fileName, $path, $moveName = true, $autoValidate = true, $root = null, $rule = 'uniqid',$uploadType = null)
+ public function image($fileName)
{
- $uploadType = $uploadType ? $uploadType : SystemConfigService::get('upload_type');
- //TODO 没有选择默认使用本地上传
- if (!$uploadType) $uploadType = 1;
$info = [];
+ try{
+ $uploadType = $this->uploadType ? : SystemConfigService::get('upload_type');
+ //TODO 没有选择默认使用本地上传
+ if (!$uploadType) $uploadType = 1;
+ switch ($uploadType) {
+ case 1 :
+ $info = $this->uploadLocaFile($fileName);
+ if(is_string($info)) return $info;
+ break;
+ case 2 :
+ $keys = Qiniu::uploadImage($fileName);
+ if (is_array($keys)) {
+ foreach ($keys as $key => &$item) {
+ if (is_array($item)) {
+ $info = Qiniu::imageUrl($item['key']);
+ $info = $this->setUploadInfo($info['dir'],2,$item['key'],UtilService::setHttpType($info['thumb_path']));
+ }
+ }
+ } else return $keys;
+ break;
+ case 3 :
+ $serverImageInfo = OSS::uploadImage($fileName);
+ if (!is_array($serverImageInfo)) return $serverImageInfo;
+ $info = $this->setUploadInfo(UtilService::setHttpType($serverImageInfo['info']['url']),3,substr(strrchr($serverImageInfo['info']['url'], '/'), 1));
+ break;
+ case 4 :
+ list($imageUrl,$serverImageInfo) = COS::uploadImage($fileName);
+ if (!is_array($serverImageInfo) && !is_object($serverImageInfo)) return $serverImageInfo;
+ $info = $this->setUploadInfo($imageUrl,4,substr(strrchr($imageUrl, '/'), 1));
+ break;
+ default:
+ $info = $this->uploadLocaFile($fileName);
+ if(is_string($info)) return $info;
+ break;
+ }
+ $this->uploadPath = '';
+ $this->autoValidate = true;
+ }catch (\Exception $e){
+ return $e->getMessage();
+ }
+ return $info;
+ }
+
+ /**
+ * 获取图片类型和大小
+ * @param string $url 图片地址
+ * @param int $type 类型
+ * @param bool $isData 是否真实获取图片信息
+ * @return array
+ */
+ public static function getImageHeaders(string $url,$type = 1,$isData = true){
stream_context_set_default( [
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
],
]);
- switch ($uploadType) {
- case 1 :
- self::init();
-// $path = self::uploadDir($path, $root);
-// $dir = app()->getRootPath() . $path;
-// if (!self::validDir($dir)) return '生成上传目录失败,请检查权限!';
-// if (!isset($_FILES[$fileName])) return '上传文件不存在!';
- $file = request()->file($fileName);
- if (!$file) return '上传文件不存在!';
- if ($autoValidate) {
- try {
- validate([$fileName => self::$imageValidate])->check([$fileName => $file]);
- } catch (ValidateException $e) {
- return $e->getMessage();
- }
- }
- $fileName = Filesystem::putFile($path, $file);
- if (!$fileName)
- return '图片上传失败!';
- $filePath = Filesystem::path($fileName);
- $fileInfo = new File($filePath);
- $info["code"] = 200;
- $info["name"] = $fileInfo->getFilename();
- $info["dir"] = str_replace('\\','/', '/uploads/' . $fileName);
- $info["time"] = time();
- $info["size"] = $fileInfo->getSize();
- $info["type"] = $fileInfo->getMime();
- $info["image_type"] = 1;
- $info['thumb_path'] = str_replace('\\','/',self::thumb('.'.$info["dir"]));
- break;
- case 2 :
- $keys = Qiniu::uploadImage($fileName);
- if (is_array($keys)) {
- foreach ($keys as $key => &$item) {
- if (is_array($item)) {
- $info = Qiniu::imageUrl($item['key']);
- $info['dir'] = UtilService::setHttpType($info['dir']);
- $info['thumb_path'] = UtilService::setHttpType($info['thumb_path']);
- $headerArray = get_headers(UtilService::setHttpType($info['dir'], 1), true);
- $info['size'] = is_array($headerArray['Content-Type']) && count($headerArray['Content-Length']) == 2 ? $headerArray['Content-Length'][1] : (string)$headerArray['Content-Length'];
- $info['type'] = is_array($headerArray['Content-Type']) && count($headerArray['Content-Type']) == 2 ? $headerArray['Content-Type'][1] : (string)$headerArray['Content-Type'];
- $info['image_type'] = 2;
- }
- }
- } else return $keys;
- break;
- case 3 :
- $serverImageInfo = OSS::uploadImage($fileName);
- if (!is_array($serverImageInfo)) return $serverImageInfo;
- $info['code'] = 200;
- $info['name'] = substr(strrchr($serverImageInfo['info']['url'], '/'), 1);
- $serverImageInfo['info']['url'] = UtilService::setHttpType($serverImageInfo['info']['url']);
- $info['dir'] = $serverImageInfo['info']['url'];
- $info['thumb_path'] = $serverImageInfo['info']['url'];
- $headerArray = get_headers(UtilService::setHttpType($serverImageInfo['info']['url'], 1), true);
- $info['size'] = $headerArray['Content-Length'];
- $info['type'] = $headerArray['Content-Type'];
- $info['time'] = time();
- $info['image_type'] = 3;
- break;
- case 4 :
- list($imageUrl,$serverImageInfo) = COS::uploadImage($fileName);
- if (!is_array($serverImageInfo) && !is_object($serverImageInfo)) return $serverImageInfo;
- if (is_object($serverImageInfo)) $serverImageInfo = $serverImageInfo->toArray();
- $serverImageInfo['ObjectURL'] = $imageUrl;
- $info['code'] = 200;
- $info['name'] = substr(strrchr($serverImageInfo['ObjectURL'], '/'), 1);
- $info['dir'] = $serverImageInfo['ObjectURL'];
- $info['thumb_path'] = $serverImageInfo['ObjectURL'];
- $headerArray = get_headers(UtilService::setHttpType($serverImageInfo['ObjectURL'], 1), true);
- $info['size'] = $headerArray['Content-Length'];
- $info['type'] = $headerArray['Content-Type'];
- $info['time'] = time();
- $info['image_type'] = 4;
- break;
- default:
- return '上传类型错误,请先选择文件上传类型';
+ $header['Content-Length'] = 0;
+ $header['Content-Type'] = 'image/jpeg';
+ if(!$isData) return $header;
+ try{
+ $header = get_headers(str_replace('\\', '/', UtilService::setHttpType($url, $type)), true);
+ if(!isset($header['Content-Length'])) $header['Content-Length'] = 0;
+ if(!isset($header['Content-Type'])) $header['Content-Type'] = 'image/jpeg';
+ }catch (\Exception $e){
+ $header['Content-Length'] = 0;
+ $header['Content-Type'] = 'image/jpeg';
}
- return $info;
+ return $header;
}
/**
- * TODO 单图上传 内容
+ * 本地文件上传
+ * @param $fileName
+ * @return array|string
+ */
+ public function uploadLocaFile($fileName)
+ {
+ $file = request()->file($fileName);
+ if (!$file) return '上传文件不存在!';
+ if ($this->autoValidate)
+ {
+ try {
+ validate([$fileName => $this->imageValidate])->check([$fileName => $file]);
+ } catch (ValidateException $e) {
+ return $e->getMessage();
+ }
+ }
+ $fileName = Filesystem::putFile($this->uploadPath, $file);
+ if (!$fileName) return '图片上传失败!';
+ $filePath = Filesystem::path($fileName);
+ $fileInfo = new File($filePath);
+ $url = '/uploads/' . $fileName;
+ return $this->setUploadInfo($url,1,$fileInfo->getFilename(),self::thumb('.'.$url),[
+ 'Content-Length'=>$fileInfo->getSize(),
+ 'Content-Type'=>$fileInfo->getMime()
+ ]);
+ }
+
+ /**
+ * 本地文件流上传
+ * @param $key
+ * @param $content
+ * @param string $root
+ * @return array|string
+ */
+ public function uploadLocalStream($key, $content,$root='')
+ {
+ $siteUrl = SystemConfigService::get('site_url') . '/';
+ $path = self::uploadDir($this->uploadPath, $root);
+ $path = str_replace('\\', DS, $path);
+ $path = str_replace('/', DS, $path);
+ $dir = $path;
+ if (!self::validDir($dir)) return '生成上传目录失败,请检查权限!';
+ $name = $path . DS . $key;
+ file_put_contents($name, $content);
+ $path = str_replace('\\', '/', $path);
+ $headerArray = self::getImageHeaders($siteUrl . $path . '/' .$key);
+ $url = '/'.$path . '/' .$key;
+ return $this->setUploadInfo($url,1,$key,$url,$headerArray);
+ }
+
+ /**
+ * TODO 文件流上传
* @param $key
* @param $content
- * @param $path
* @param null $root
* @return array|string
* @throws \Exception
*/
- public static function imageStream($key, $content, $path, $root = '')
+ public function imageStream($key, $content,$root='')
{
$uploadType = SystemConfigService::get('upload_type');
//TODO 没有选择默认使用本地上传
if (!$uploadType) $uploadType = 1;
- $siteUrl = SystemConfigService::get('site_url') . '/';
$info = [];
switch ($uploadType) {
case 1 :
- self::init();
- $path = self::uploadDir($path, $root);
- $path = str_replace('\\', DS, $path);
- $path = str_replace('/', DS, $path);
- $dir = $path;
- if (!self::validDir($dir)) return '生成上传目录失败,请检查权限!';
- $name = $path . DS . $key;
- file_put_contents($name, $content);
- $info["code"] = 200;
- $info["name"] = $key;
- $path = str_replace('\\', '/', $path);
- $info["dir"] = $path . '/' .$key;
- $info["time"] = time();
- $headerArray = get_headers(str_replace('\\', '/', UtilService::setHttpType($siteUrl, 1) . $info['dir']), true);
- $info['size'] = $headerArray['Content-Length'];
- $info['type'] = $headerArray['Content-Type'];
- $info["image_type"] = 1;
- $info['thumb_path'] = '/' . $info['dir'];
- $info['dir'] = '/' . $info['dir'];
+ $info = $this->uploadLocalStream($key, $content,$root);
+ if(is_string($info)) return $info;
break;
case 2 :
$keys = Qiniu::uploadImageStream($key, $content);
@@ -244,10 +352,7 @@ class UploadService
if (is_array($item)) {
$info = Qiniu::imageUrl($item['key']);
$info['dir'] = UtilService::setHttpType($info['dir']);
- $headerArray = get_headers(UtilService::setHttpType(str_replace('\\', '/', $info['dir']), 1), true);
- $info['size'] = $headerArray['Content-Length'];
- $info['type'] = $headerArray['Content-Type'];
- $info['image_type'] = 2;
+ $info = $this->setUploadInfo($info['dir'],2,$item['key'],$info['thumb_path']);
}
}
if (!count($info)) return '七牛云文件上传失败';
@@ -257,70 +362,76 @@ class UploadService
$content = COS::resourceStream($content);
$serverImageInfo = OSS::uploadImageStream($key, $content);
if (!is_array($serverImageInfo)) return $serverImageInfo;
- $info['code'] = 200;
- $info['name'] = substr(strrchr($serverImageInfo['info']['url'], '/'), 1);
- $serverImageInfo['info']['url'] = UtilService::setHttpType($serverImageInfo['info']['url']);
- $info['dir'] = $serverImageInfo['info']['url'];
- $info['thumb_path'] = $serverImageInfo['info']['url'];
- $headerArray = get_headers(UtilService::setHttpType(str_replace('\\', '/', $serverImageInfo['info']['url']), 1), true);
- $info['size'] = $headerArray['Content-Length'];
- $info['type'] = $headerArray['Content-Type'];
- $info['time'] = time();
- $info['image_type'] = 3;
+ $info = $this->setUploadInfo(UtilService::setHttpType($serverImageInfo['info']['url']),3,substr(strrchr($serverImageInfo['info']['url'], '/'), 1));
break;
case 4 :
list($imageUrl,$serverImageInfo) = COS::uploadImageStream($key, $content);
if (!is_array($serverImageInfo) && !is_object($serverImageInfo)) return $serverImageInfo;
- if (is_object($serverImageInfo)) $serverImageInfo = $serverImageInfo->toArray();
- $serverImageInfo['ObjectURL'] = $imageUrl;
- $info['code'] = 200;
- $info['name'] = substr(strrchr($serverImageInfo['ObjectURL'], '/'), 1);
- $info['dir'] = $serverImageInfo['ObjectURL'];
- $info['thumb_path'] = $serverImageInfo['ObjectURL'];
- $headerArray = get_headers(UtilService::setHttpType(str_replace('\\', '/', $serverImageInfo['ObjectURL']), 1), true);
- $info['size'] = $headerArray['Content-Length'];
- $info['type'] = $headerArray['Content-Type'];
- $info['time'] = time();
- $info['image_type'] = 4;
+ $info = $this->setUploadInfo($imageUrl,4,substr(strrchr($imageUrl, '/'), 1));
break;
default:
- return '上传类型错误,请先选择文件上传类型';
+ $info = $this->uploadLocalStream($key, $content,$root);
+ if(is_string($info)) return $info;
+ break;
}
+ $this->uploadPath = '';
+ $this->autoValidate = true;
return $info;
}
+ /**
+ * 设置返回的数据信息
+ * @param string $url
+ * @param int $imageType
+ * @param string $name
+ * @param string $thumbPath
+ * @return array
+ */
+ protected function setUploadInfo(string $url,int $imageType,string $name = '',string $thumbPath = '',array $headerArray = [])
+ {
+ $headerArray = count($headerArray) ? $headerArray : self::getImageHeaders($url);
+ if(is_array($headerArray['Content-Type']) && count($headerArray['Content-Length']) == 2){
+ $headerArray['Content-Length'] = $headerArray['Content-Length'][1];
+ }
+ if(is_array($headerArray['Content-Type']) && count($headerArray['Content-Type']) == 2){
+ $headerArray['Content-Type'] = $headerArray['Content-Type'][1];
+ }
+ $info = [
+ 'name' => str_replace('\\','/',$name ? : $url),
+ 'dir' => str_replace('\\','/',$url),
+ 'size' => $headerArray['Content-Length'],
+ 'type' => $headerArray['Content-Type'],
+ 'time' => time(),
+ 'thumb_path' => str_replace('\\','/',$thumbPath ? : $url),
+ 'image_type' => $imageType,
+ ];
+ $uploadInfo = array_merge($this->uploadInfo,$info);
+ return $uploadInfo;
+ }
+
/**
* 文件上传
* @param string $fileName 上传文件名
- * @param string $path 上传路径
- * @param bool $moveName 生成文件名
- * @param string $autoValidate 验证规则 [size:1024,ext:[],type:[]]
- * @param null $root 上传根目录路径
- * @param string $rule 文件名自动生成规则
* @return mixed
*/
- public static function file($fileName, $path, $moveName = true, $autoValidate = '', $root = null, $rule = 'uniqid')
+ public function file($fileName)
{
- self::init();
-// $path = self::uploadDir($path, $root);
-// $dir = $path;
-// if (!self::validDir($dir)) return self::setError('生成上传目录失败,请检查权限!');
if (!isset($_FILES[$fileName])) return self::setError('上传文件不存在!');
$extension = strtolower(pathinfo($_FILES[$fileName]['name'], PATHINFO_EXTENSION));
if (strtolower($extension) == 'php' || !$extension)
return self::setError('上传文件非法!');
$file = request()->file($fileName);
- if ($autoValidate) {
+ if ($this->autoValidate)
+ {
try {
- validate([$fileName => self::$imageValidate])->check([$fileName => $file]);
+ validate([$fileName => $this->imageValidate])->check([$fileName => $file]);
} catch (ValidateException $e) {
return self::setError($e->getMessage());
}
};
- $fileName = Filesystem::putFile($path, $file);
- if (!$fileName)
- return self::setError('图片上传失败!');
- return self::successful($fileName);
+ $fileName = Filesystem::putFile($this->uploadPath, $file);
+ if (!$fileName) return self::setError('图片上传失败!');
+ return self::successful(str_replace('\\','/',$fileName));
}
public static function pathToUrl($path)
@@ -328,7 +439,7 @@ class UploadService
return trim(str_replace(DS, '/', $path), '.');
}
- public static function openImage($filePath)
+ public function openImage($filePath)
{
return \think\Image::open($filePath);
}
@@ -342,9 +453,9 @@ class UploadService
* @param string $pre 前缀
* @return string 压缩图片路径
*/
- public static function thumb($filePath, $ratio = 5, $pre = 's_')
+ public function thumb($filePath, $ratio = 5, $pre = 's_')
{
- $img = self::openImage($filePath);
+ $img = $this->openImage($filePath);
$width = $img->width() * $ratio / 10;
$height = $img->height() * $ratio / 10;
$dir = dirname($filePath);
@@ -354,4 +465,9 @@ class UploadService
if(substr($savePath, 0, 2) == './') return substr($savePath, 1, strlen($savePath));
return DS . $savePath;
}
+
+ protected function __clone()
+ {
+ // TODO: Implement __clone() method.
+ }
}
\ No newline at end of file
diff --git a/crmeb/crmeb/services/UtilService.php b/crmeb/crmeb/services/UtilService.php
index bdc3dd95..e9293476 100644
--- a/crmeb/crmeb/services/UtilService.php
+++ b/crmeb/crmeb/services/UtilService.php
@@ -10,12 +10,20 @@ namespace crmeb\services;
use crmeb\services\storage\COS;
use crmeb\services\storage\OSS;
use crmeb\services\storage\Qiniu;
+use think\Exception;
use think\facade\Config;
use dh2y\qrcode\QRcode;
class UtilService
{
+ /**
+ * 获取POST请求的数据
+ * @param $params
+ * @param null $request
+ * @param bool $suffix
+ * @return array
+ */
public static function postMore($params,$request = null,$suffix = false)
{
if($request === null) $request = app('request');
@@ -34,6 +42,13 @@ class UtilService
return $p;
}
+ /**
+ * 获取请求的数据
+ * @param $params
+ * @param null $request
+ * @param bool $suffix
+ * @return array
+ */
public static function getMore($params,$request=null,$suffix = false)
{
if($request === null) $request = app('request');
@@ -138,6 +153,11 @@ class UtilService
return app()->getRootPath().$path;
}
+ /**
+ * 时间戳人性化转化
+ * @param $time
+ * @return string
+ */
public static function timeTran($time)
{
$t = time() - $time;
@@ -486,7 +506,7 @@ class UtilService
$res = ob_get_contents();
ob_end_clean();
$key = substr(md5(rand(0, 9999)) , 0, 5). date('YmdHis') . rand(0, 999999) . '.jpg';
- return UploadService::imageStream($key,$res,$path);
+ return UploadService::getInstance()->setUploadPath($path)->imageStream($key,$res);
}
/*
@@ -538,11 +558,11 @@ class UtilService
return $siteUrl.$image;
}
-
- /*
+ /**
* CURL 检测远程文件是否在
- *
- * */
+ * @param $url
+ * @return bool
+ */
public static function CurlFileExist($url)
{
$ch = curl_init();
@@ -569,78 +589,83 @@ class UtilService
public static function getQRCodePath($url, $name)
{
if(!strlen(trim($url)) || !strlen(trim($name))) return false;
- $uploadType = SystemConfigService::get('upload_type');
- //TODO 没有选择默认使用本地上传
- if (!$uploadType) $uploadType = 1;
- $siteUrl = SystemConfigService::get('site_url') ?: '.';
- $info = [];
- $outfile = Config::get('qrcode.cache_dir');
+ try{
+ $uploadType = SystemConfigService::get('upload_type');
+ //TODO 没有选择默认使用本地上传
+ if (!$uploadType) $uploadType = 1;
+ $siteUrl = SystemConfigService::get('site_url');
+ if(!$siteUrl) return '请前往后台设置->系统设置->网站域名 填写您的域名格式为:http://域名';
+ $info = [];
+ $outfile = Config::get('qrcode.cache_dir');
- $code = new QRcode();
- $wapCodePath = $code->png($url, $outfile.'/'.$name)->getPath(); //获取二维码生成的地址
- $content = file_get_contents('.'.$wapCodePath);
- switch ($uploadType) {
- case 1 :
- $info["code"] = 200;
- $info["name"] = $name;
- $info["dir"] = $wapCodePath;
- $info["time"] = time();
- $headerArray = get_headers(UtilService::setHttpType($siteUrl, 1) . $info['dir'],true);
- $info['size'] = $headerArray['Content-Length'];
- $info['type'] = $headerArray['Content-Type'];
- $info["image_type"] = 1;
- $info['thumb_path'] = $wapCodePath;
- break;
- case 2 :
- $keys = Qiniu::uploadImageStream($name, $content);
- if (is_array($keys)) {
- foreach ($keys as $key => &$item) {
- if (is_array($item)) {
- $info = Qiniu::imageUrl($item['key']);
- $info['dir'] = UtilService::setHttpType($info['dir']);
- $headerArray = get_headers(UtilService::setHttpType(str_replace('\\', '/', $info['dir']), 1), true);
- $info['size'] = $headerArray['Content-Length'];
- $info['type'] = $headerArray['Content-Type'];
- $info['image_type'] = 2;
+ $code = new QRcode();
+ $wapCodePath = $code->png($url, $outfile.'/'.$name)->getPath(); //获取二维码生成的地址
+ $content = file_get_contents('.'.$wapCodePath);
+ switch ($uploadType) {
+ case 1 :
+ $info["code"] = 200;
+ $info["name"] = $name;
+ $info["dir"] = $wapCodePath;
+ $info["time"] = time();
+ $headerArray=UploadService::getImageHeaders($siteUrl.$info['dir'],1,false);
+ $info['size'] = $headerArray['Content-Length'];
+ $info['type'] = $headerArray['Content-Type'];
+ $info["image_type"] = 1;
+ $info['thumb_path'] = $wapCodePath;
+ break;
+ case 2 :
+ $keys = Qiniu::uploadImageStream($name, $content);
+ if (is_array($keys)) {
+ foreach ($keys as $key => &$item) {
+ if (is_array($item)) {
+ $info = Qiniu::imageUrl($item['key']);
+ $info['dir'] = UtilService::setHttpType($info['dir']);
+ $headerArray = UploadService::getImageHeaders( $info['dir']);
+ $info['size'] = $headerArray['Content-Length'];
+ $info['type'] = $headerArray['Content-Type'];
+ $info['image_type'] = 2;
+ }
}
- }
- if (!count($info)) return '七牛云文件上传失败';
- } else return $keys;
- break;
- case 3 :
- $content = COS::resourceStream($content);
- $serverImageInfo = OSS::uploadImageStream($name, $content);
- if (!is_array($serverImageInfo)) return $serverImageInfo;
- $info['code'] = 200;
- $info['name'] = substr(strrchr($serverImageInfo['info']['url'], '/'), 1);
- $serverImageInfo['info']['url'] = UtilService::setHttpType($serverImageInfo['info']['url']);
- $info['dir'] = $serverImageInfo['info']['url'];
- $info['thumb_path'] = $serverImageInfo['info']['url'];
- $headerArray = get_headers(UtilService::setHttpType(str_replace('\\', '/', $serverImageInfo['info']['url']), 1), true);
- $info['size'] = $headerArray['Content-Length'];
- $info['type'] = $headerArray['Content-Type'];
- $info['time'] = time();
- $info['image_type'] = 3;
- break;
- case 4 :
- list($imageUrl,$serverImageInfo) = COS::uploadImageStream($name, $content);
- if (!is_array($serverImageInfo) && !is_object($serverImageInfo)) return $serverImageInfo;
- if (is_object($serverImageInfo)) $serverImageInfo = $serverImageInfo->toArray();
- $serverImageInfo['ObjectURL'] = $imageUrl;
- $info['code'] = 200;
- $info['name'] = substr(strrchr($serverImageInfo['ObjectURL'], '/'), 1);
- $info['dir'] = $serverImageInfo['ObjectURL'];
- $info['thumb_path'] = $serverImageInfo['ObjectURL'];
- $headerArray = get_headers(UtilService::setHttpType(str_replace('\\', '/', $serverImageInfo['ObjectURL']), 1), true);
- $info['size'] = $headerArray['Content-Length'];
- $info['type'] = $headerArray['Content-Type'];
- $info['time'] = time();
- $info['image_type'] = 4;
- break;
- default:
- return '上传类型错误,请先选择文件上传类型';
+ if (!count($info)) return '七牛云文件上传失败';
+ } else return $keys;
+ break;
+ case 3 :
+ $content = COS::resourceStream($content);
+ $serverImageInfo = OSS::uploadImageStream($name, $content);
+ if (!is_array($serverImageInfo)) return $serverImageInfo;
+ $info['code'] = 200;
+ $info['name'] = substr(strrchr($serverImageInfo['info']['url'], '/'), 1);
+ $serverImageInfo['info']['url'] = UtilService::setHttpType($serverImageInfo['info']['url']);
+ $info['dir'] = $serverImageInfo['info']['url'];
+ $info['thumb_path'] = $serverImageInfo['info']['url'];
+ $headerArray = UploadService::getImageHeaders($serverImageInfo['info']['url'],1,true);
+ $info['size'] = $headerArray['Content-Length'];
+ $info['type'] = $headerArray['Content-Type'];
+ $info['time'] = time();
+ $info['image_type'] = 3;
+ break;
+ case 4 :
+ list($imageUrl,$serverImageInfo) = COS::uploadImageStream($name, $content);
+ if (!is_array($serverImageInfo) && !is_object($serverImageInfo)) return $serverImageInfo;
+ if (is_object($serverImageInfo)) $serverImageInfo = $serverImageInfo->toArray();
+ $serverImageInfo['ObjectURL'] = $imageUrl;
+ $info['code'] = 200;
+ $info['name'] = substr(strrchr($serverImageInfo['ObjectURL'], '/'), 1);
+ $info['dir'] = $serverImageInfo['ObjectURL'];
+ $info['thumb_path'] = $serverImageInfo['ObjectURL'];
+ $headerArray = UploadService::getImageHeaders( $serverImageInfo['ObjectURL'],true);
+ $info['size'] = $headerArray['Content-Length'];
+ $info['type'] = $headerArray['Content-Type'];
+ $info['time'] = time();
+ $info['image_type'] = 4;
+ break;
+ default:
+ return '上传类型错误,请先选择文件上传类型';
+ }
+ return $info;
+ }catch (\Exception $e){
+ return $e->getMessage();
}
- return $info;
}
/**
@@ -648,18 +673,26 @@ class UtilService
* @param string $avatar
* @return bool|string
*/
- public static function setImageBase64($avatar = '',$timeout=15){
+ public static function setImageBase64($avatar = '',$timeout=9){
try{
- $header = array(
+ $url=parse_url($avatar);
+ $url=$url['host'];
+ $header = [
'User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0',
'Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3',
- 'Accept-Encoding: gzip, deflate',);
+ 'Accept-Encoding: gzip, deflate',
+ 'Host:'.$url
+ ];
+ $dir= pathinfo($url);
+ $host = $dir['dirname'];
+ $refer= $host.'/';
$curl = curl_init();
+ curl_setopt($curl, CURLOPT_REFERER, $refer);
curl_setopt($curl, CURLOPT_URL, $avatar);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_ENCODING, 'gzip');
- curl_setopt($curl, CURLOPT_TIMEOUT, $timeout);
+ curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
$data = curl_exec($curl);
$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
@@ -669,7 +702,6 @@ class UtilService
}catch (\Exception $e){
return false;
}
-
}
diff --git a/crmeb/crmeb/services/WechatService.php b/crmeb/crmeb/services/WechatService.php
index b84ff2e0..2aef8dff 100644
--- a/crmeb/crmeb/services/WechatService.php
+++ b/crmeb/crmeb/services/WechatService.php
@@ -23,7 +23,6 @@ use EasyWeChat\Message\Video;
use EasyWeChat\Message\Voice;
use EasyWeChat\Payment\Order;
use EasyWeChat\Server\Guard;
-use think\facade\Route as Url;
use app\models\store\StoreOrder as StoreOrderWapModel;
use app\models\user\UserRecharge;
use think\Response;
@@ -42,6 +41,7 @@ class WechatService
'token'=>isset($wechat['wechat_token']) ? trim($wechat['wechat_token']) :'',
'guzzle' => [
'timeout' => 10.0, // 超时时间(秒)
+ 'verify' => false
],
];
if(isset($wechat['wechat_encode']) && (int)$wechat['wechat_encode']>0 && isset($wechat['wechat_encodingaeskey']) && !empty($wechat['wechat_encodingaeskey']))
@@ -52,7 +52,6 @@ class WechatService
'key'=>trim($payment['pay_weixin_key']),
'cert_path'=>realpath('.'.$payment['pay_weixin_client_cert']),
'key_path'=>realpath('.'.$payment['pay_weixin_client_key']),
- //'notify_url'=>SystemConfigService::get('site_url').Url::buildUrl('wap/Wechat/notify')
'notify_url'=>SystemConfigService::get('site_url') . '/api/wechat/notify'
];
}
@@ -470,7 +469,7 @@ class WechatService
public static function jsSdk($url = '')
{
- $apiList = ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'startRecord', 'stopRecord', 'onVoiceRecordEnd', 'playVoice', 'pauseVoice', 'stopVoice', 'onVoicePlayEnd', 'uploadVoice', 'downloadVoice', 'chooseImage', 'previewImage', 'uploadImage', 'downloadImage', 'translateVoice', 'getNetworkType', 'openLocation', 'getLocation', 'hideOptionMenu', 'showOptionMenu', 'hideMenuItems', 'showMenuItems', 'hideAllNonBaseMenuItem', 'showAllNonBaseMenuItem', 'closeWindow', 'scanQRCode', 'chooseWXPay', 'openProductSpecificView', 'addCard', 'chooseCard', 'openCard'];
+ $apiList = ['openAddress','updateTimelineShareData','updateAppMessageShareData','onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'startRecord', 'stopRecord', 'onVoiceRecordEnd', 'playVoice', 'pauseVoice', 'stopVoice', 'onVoicePlayEnd', 'uploadVoice', 'downloadVoice', 'chooseImage', 'previewImage', 'uploadImage', 'downloadImage', 'translateVoice', 'getNetworkType', 'openLocation', 'getLocation', 'hideOptionMenu', 'showOptionMenu', 'hideMenuItems', 'showMenuItems', 'hideAllNonBaseMenuItem', 'showAllNonBaseMenuItem', 'closeWindow', 'scanQRCode', 'chooseWXPay', 'openProductSpecificView', 'addCard', 'chooseCard', 'openCard'];
$jsService = self::jsService();
if($url) $jsService->setUrl($url);
try{
diff --git a/crmeb/crmeb/services/YLYService.php b/crmeb/crmeb/services/YLYService.php
new file mode 100644
index 00000000..2531c116
--- /dev/null
+++ b/crmeb/crmeb/services/YLYService.php
@@ -0,0 +1,219 @@
+partner = $system['develop_id'] ?? '';
+ $this->apiKey = $system['printing_api_key'] ?? '';
+ $this->client_id = $system['printing_client_id'] ?? '';
+ $this->terminal = $system['terminal_number'] ?? '';
+ $this->getAccessToken();
+ }
+
+ /**
+ * 实例化本类
+ * @return YLYService
+ */
+ public static function getInstance()
+ {
+ if(is_null(self::$instance)) self::$instance = new self();
+ return self::$instance;
+ }
+
+ /**
+ * 获取AccessToken
+ * */
+ protected function getAccessToken(){
+ $token = CacheModel::getDbCache('YLY_access_token');
+ if(!$token){
+ $request = self::postRequest($this->apiUrl.'oauth/oauth',[
+ 'client_id' => $this->client_id,
+ 'grant_type'=> 'client_credentials',
+ 'sign' => strtolower(md5($this->client_id.time().$this->apiKey)),
+ 'scope' => 'all',
+ 'timestamp' => time(),
+ 'id' => $this->createUuid(),
+ ]);
+ $request = json_decode($request,true);
+ $request['error'] = $request['error'] ?? 0;
+ $request['error_description'] = $request['error_description'] ?? '';
+ if($request['error'] == 0 && $request['error_description'] == 'success'){
+ $token = $request['body']['access_token'] ?? '';
+ CacheModel::setDbCache('YLY_access_token',$token);
+ }
+ }
+ $this->access_token = $token;
+ }
+
+ /**
+ * 生成UUID4
+ * @return string
+ */
+ protected function createUuid() {
+ return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',mt_rand( 0, 0xffff ),mt_rand( 0, 0xffff ),mt_rand( 0, 0xffff ),
+ mt_rand( 0, 0x0fff )|0x4000,mt_rand( 0, 0x3fff )|0x8000,mt_rand( 0, 0xffff ),mt_rand( 0, 0xffff ),mt_rand( 0, 0xffff ));
+ }
+
+ /**
+ * 开始打印订单
+ * @param $content
+ * @param string $order_id
+ * @return bool|mixed
+ */
+ public function orderPrinting(string $order_id = '')
+ {
+ $request=self::postRequest($this->apiUrl.'print/index',[
+ 'client_id' => $this->client_id,
+ 'access_token' => $this->access_token,
+ 'machine_code' => $this->terminal,
+ 'content' => $this->content,
+ 'origin_id' => $order_id ? $order_id : $this->order_id,
+ 'sign' => strtolower(md5($this->client_id.time().$this->apiKey)),
+ 'id' => $this->createUuid(),
+ 'timestamp' => time()
+ ]);
+ if($request === false) return false;
+ return json_decode($request,true);
+ }
+
+ /**
+ * 删除授权终端
+ * @param $machine_code
+ * @return bool|mixed4
+ */
+ public function deletePrinter($machine_code)
+ {
+ $request = self::postRequest($this->apiUrl.'printer/deleteprinter',[
+ 'client_id' => $this->client_id,
+ 'access_token' => $this->access_token,
+ 'machine_code' => $machine_code,
+ 'sign' => strtolower(md5($this->client_id.time().$this->apiKey)),
+ 'id' => $this->createUuid(),
+ 'timestamp' => time(),
+ ]);
+ if($request === false) return false;
+ return json_decode($request,true);
+ }
+
+ /**
+ * 设置订单打印模板
+ * @param string $name 商家名称
+ * @param array $orderInfo 下单时间
+ * @param array $product 订单详情
+ * @return $this
+ */
+ public function setContent(string $name,array $orderInfo,array $product){
+ $timeYmd = date('Y-m-d',time());
+ $timeHis = date('H:i:s',time());
+ $goodsStr = '
| 商品名称 | 数量 | 单价 | 金额 |
';
+ foreach ($product as $item){
+ $goodsStr.='';
+ $goodsStr.="| {$item['productInfo']['store_name']} | {$item['cart_num']} | {$item['productInfo']['price']} | {$item['truePrice']} | ";
+ $goodsStr.='
';
+ }
+ $goodsStr.='
';
+ $this->order_id = $orderInfo['order_id'];
+ $count=<<
** {$name} **
+----------------
+订单编号:{$orderInfo['order_id']}\r
+日 期: {$timeYmd} \r
+时 间: {$timeHis}\r
+姓 名: {$orderInfo['real_name']}\r
+赠送积分: {$orderInfo['gain_integral']}\r
+订单备注:{$orderInfo['mark']}\r
+*************商品***************\r
+{$goodsStr}
+********************************\r
+
+合计:¥{$orderInfo['total_price']},优惠: ¥{$orderInfo['coupon_price']}
+邮费:¥{$orderInfo['pay_postage']},抵扣:¥{$orderInfo['deduction_price']}
+实际支付:¥{$orderInfo['pay_price']}
+
+ ** 完 **
+CONTENT;
+ $this->content = $count;
+ return $this;
+ }
+
+ /**
+ * 获取打印内容
+ * @return string
+ */
+ public function getContent()
+ {
+ return $this->content;
+ }
+
+ protected function __clone()
+ {
+ // TODO: Implement __clone() method.
+ }
+}
\ No newline at end of file
diff --git a/crmeb/crmeb/services/storage/COS.php b/crmeb/crmeb/services/storage/COS.php
index 0d752e2a..9bbeef3e 100644
--- a/crmeb/crmeb/services/storage/COS.php
+++ b/crmeb/crmeb/services/storage/COS.php
@@ -27,7 +27,6 @@ class COS
//TODO COS使用 所属地域
protected static $storageRegion;
-
/**
* TODO 初始化
* @return null|Client
diff --git a/crmeb/crmeb/subscribes/MessageSubscribe.php b/crmeb/crmeb/subscribes/MessageSubscribe.php
index c6774103..07da19c6 100644
--- a/crmeb/crmeb/subscribes/MessageSubscribe.php
+++ b/crmeb/crmeb/subscribes/MessageSubscribe.php
@@ -2,7 +2,13 @@
namespace crmeb\subscribes;
use app\admin\model\wechat\WechatMessage;
+use app\models\store\StoreOrder;
+use app\models\store\StoreService;
+use app\models\user\User;
use app\models\user\WechatUser;
+use crmeb\services\SMSService;
+use crmeb\services\SystemConfigService;
+use think\facade\Log;
/**
* 用户消息事件
@@ -41,4 +47,176 @@ class MessageSubscribe
list($message) = $event;
WechatUser::unSubscribe($message->FromUserName);
}
+
+ /**
+ * 下发送短信事件
+ * @param array $event
+ * @method void MssageSendPaySuccess($order_id) as PaySuccess 支付成功短信提醒
+ * @method void MssageSendDeliver($order_id) as Deliver 发货短信提醒
+ * @method void MssageSendReceiving($order_id) as Receiving 确认收货短信提醒
+ * @method void MssageSendAdminPlaceAnOrder($order_id) as AdminPlaceAnOrder 用户下单管理员短信提醒
+ * @method void MssageSendAdminPaySuccess($order_id) as AdminPaySuccess 用户支付成功管理员短信提醒
+ * @method void MssageSendAdminConfirmTakeOver($order_id) as AdminConfirmTakeOver 用户确认收货管理员短信提醒
+ * @method void MssageSendAdminRefund($order_id) as AdminRefund 用户退款管理员短信提醒
+ *
+ */
+ public function onShortMssageSend($event)
+ {
+ //$actions 可为数组
+ list($order_id,$actions) = $event;
+ try{
+ if(is_array($actions)){
+ foreach ($actions as $action){
+ $actionName = 'MssageSend'.$action;
+ if(method_exists($this,$actionName)) $this->$actionName($order_id);
+ }
+ }else{
+ $actionName = 'MssageSend'.$actions;
+ if(method_exists($this,$actionName)) $this->$actionName($order_id);
+ }
+ }catch (\Exception $e){
+ Log::error('短信下发事件发生系统错误,错误原因:'.$e->getMessage());
+ }
+ }
+ /**
+ * 发送短信
+ * @param boolean $switch 发送开关
+ * @param string $phone 手机号码
+ * @param array $data 模板替换内容
+ * @param int $template 模板编号
+ * @param string $logMsg 错误日志记录
+ */
+ public function send($switch,$phone,array $data,$template,$logMsg='')
+ {
+ if($switch && $phone){
+ $template = SMSService::getConstants($template);
+ $res = SMSService::send($phone, $template, $data);
+ if ($res['status'] == 400) Log::info($logMsg);
+ }
+ }
+
+ /**
+ * 支付成功短信提醒
+ * @param string $order_id
+ */
+ public function MssageSendPaySuccess($order_id)
+ {
+ $storeInfo = StoreOrder::where(['order_id'=>$order_id,'paid'=>1,'refund_status'=>0])->find();
+ if(!$storeInfo) return;
+ $switch = SystemConfigService::get('lower_order_switch') ? true : false;
+ //模板变量
+ $pay_price = $storeInfo->pay_price;
+ $this->send($switch,$storeInfo->user_phone,compact('order_id','pay_price'),'PAY_SUCCESS_CODE','用户支付成功发送短信失败,订单号为:'.$order_id);
+ }
+
+ /**
+ * 发货短信提醒
+ * @param string $order_id
+ */
+ public function MssageSendDeliver($order_id)
+ {
+ $storeInfo = StoreOrder::where(['order_id'=>$order_id,'paid'=>1,'refund_status'=>0,'status'=>1])->find();
+ if(!$storeInfo) return;
+ $switch = SystemConfigService::get('deliver_goods_switch') ? true : false;
+ //模板变量
+ $nickname = User::where('uid',$storeInfo->uid)->value('nickname');
+ $store_name = StoreOrder::getProductTitle($storeInfo->cart_id);
+ $this->send($switch,$storeInfo->user_phone,compact('order_id','store_name','nickname'),'DELIVER_GOODS_CODE','用户发货发送短信失败,订单号为:'.$order_id);
+ }
+
+ /**
+ * 确认收货短信提醒
+ * @param string $order_id
+ */
+ public function MssageSendReceiving($order_id)
+ {
+ $storeInfo = StoreOrder::where(['order_id'=>$order_id,'paid'=>1,'refund_status'=>0,'status'=>2])->find();
+ if(!$storeInfo) return;
+ $switch = SystemConfigService::get('confirm_take_over_switch') ? true : false;
+ //模板变量
+ $store_name = StoreOrder::getProductTitle($storeInfo->cart_id);
+ $this->send($switch,$storeInfo->user_phone,compact('store_name','order_id'),'TAKE_DELIVERY_CODE','用户确认收货发送短信失败,订单号为:'.$order_id);
+ }
+
+ /**
+ * 用户下单管理员短信提醒
+ * @param string $order_id
+ */
+ public function MssageSendAdminPlaceAnOrder($order_id)
+ {
+ $storeInfo = StoreOrder::where(['order_id'=>$order_id,'paid'=>0,'refund_status'=>0,'status'=>0])->find();
+ if(!$storeInfo) return;
+ $switch = SystemConfigService::get('admin_lower_order_switch') ? true : false;
+ $switch && $this->getAdminNoticeAuth(function ($userInfo) use($storeInfo) {
+ //模板变量
+ $admin_name = $userInfo->nickname;
+ $order_id = $storeInfo->order_id;
+ $this->send(true,$userInfo->phone,compact('admin_name','order_id'),'ADMIN_PLACE_ORDER_CODE','用户下单成功管理员发送短信通知失败,订单号为:'.$storeInfo->order_id);
+ });
+ }
+
+ /**
+ * 支付成功管理员短信提醒
+ * @param string $order_id
+ */
+ public function MssageSendAdminPaySuccess($order_id)
+ {
+ $storeInfo = StoreOrder::where(['order_id'=>$order_id,'paid'=>1,'refund_status'=>0,'status'=>0])->find();
+ if(!$storeInfo) return;
+ $switch = SystemConfigService::get('admin_pay_success_switch') ? true : false;
+ $switch && $this->getAdminNoticeAuth(function ($userInfo) use($storeInfo) {
+ //模板变量
+ $admin_name = $userInfo->nickname;
+ $order_id = $storeInfo->order_id;
+ $this->send(true,$userInfo->phone,compact('admin_name','order_id'),'ADMIN_PAY_SUCCESS_CODE','用户支付成功管理员发送短信通知失败,订单号为:'.$storeInfo->order_id);
+ });
+ }
+
+ /**
+ * 用户确认收货管理员短信提醒
+ * @param string $order_id
+ */
+ public function MssageSendAdminConfirmTakeOver($order_id)
+ {
+ $storeInfo = StoreOrder::where(['order_id'=>$order_id,'paid'=>1,'refund_status'=>0,'status'=>2])->find();
+ if(!$storeInfo) return;
+ $switch = SystemConfigService::get('admin_confirm_take_over_switch') ? true : false;
+ $switch && $this->getAdminNoticeAuth(function ($userInfo) use($storeInfo) {
+ //模板变量
+ $admin_name = $userInfo->nickname;
+ $order_id = $storeInfo->order_id;
+ $this->send(true,$userInfo->phone,compact('admin_name','order_id'),'ADMIN_TAKE_DELIVERY_CODE','用户确认收货成功管理员发送短信通知失败,订单号为:'.$storeInfo->order_id);
+ });
+ }
+
+ /**
+ * 用户发起退款管理员短信提醒
+ * @param string $order_id
+ */
+ public function MssageSendAdminRefund($order_id)
+ {
+ $storeInfo = StoreOrder::where(['order_id'=>$order_id,'paid'=>1,'refund_status'=>1])->find();
+ if(!$storeInfo) return;
+ $switch = SystemConfigService::get('admin_refund_switch') ? true : false;
+ $switch && $this->getAdminNoticeAuth(function ($userInfo) use($storeInfo) {
+ //模板变量
+ $admin_name = $userInfo->nickname;
+ $order_id = $storeInfo->order_id;
+ $this->send(true,$userInfo->phone,compact('admin_name','order_id'),'ADMIN_RETURN_GOODS_CODE','用户退款管理员发送短信通知失败,订单号为:'.$storeInfo->order_id);
+ });
+ }
+ /**
+ * 提取管理员权限
+ * @param callable $callable 回调函数
+ */
+ public function getAdminNoticeAuth(callable $callable)
+ {
+ $serviceOrderNotice = StoreService::getStoreServiceOrderNotice();
+ if(count($serviceOrderNotice)) {
+ foreach ($serviceOrderNotice as $uid) {
+ $userInfo= User::where('uid',$uid)->field('phone,nickname')->find();
+ if($userInfo && is_callable($callable)) $callable($userInfo);
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/crmeb/crmeb/subscribes/OrderSubscribe.php b/crmeb/crmeb/subscribes/OrderSubscribe.php
index a4025d01..19ee80e4 100644
--- a/crmeb/crmeb/subscribes/OrderSubscribe.php
+++ b/crmeb/crmeb/subscribes/OrderSubscribe.php
@@ -9,6 +9,10 @@ namespace crmeb\subscribes;
use app\admin\model\order\StoreOrder as AdminStoreOrder;
use app\models\store\StoreOrder;
+use app\models\store\StoreOrderCartInfo;
+use crmeb\services\SystemConfigService;
+use crmeb\services\YLYService;
+use think\facade\Log;
/**
* 订单事件
@@ -110,4 +114,34 @@ class OrderSubscribe
StoreOrder::RegressionStock($order) && StoreOrder::RegressionIntegral($order) && StoreOrder::RegressionCoupon($order);
}
+ /**
+ * 订单支付成功
+ * @param array $event
+ */
+ public function onOrderPaySuccess($event)
+ {
+ list($order) = $event;
+ $switch = SystemConfigService::get('pay_success_printing_switch') ? true : false ;
+ //打印小票
+ if($switch){
+ try{
+ $order['cart_id'] = is_string($order['cart_id']) ? json_decode($order['cart_id'],true) : $order['cart_id'];
+ $cartInfo = StoreOrderCartInfo::whereIn('cart_id',$order['cart_id'])->field('cart_info')->select();
+ $cartInfo = count($cartInfo) ? $cartInfo->toArray() : [];
+ $product = [];
+ foreach ($cartInfo as $item){
+ $value = is_string($item['cart_info']) ? json_decode($item['cart_info']) : $item['cart_info'];
+ $value['productInfo']['store_name'] = $value['productInfo']['store_name'] ?? "";
+ $value['productInfo']['store_name'] = StoreOrderCartInfo::getSubstrUTf8($value['productInfo']['store_name'],10,'UTF-8','');
+ $product[] = $value;
+ }
+ $instance = YLYService::getInstance();
+ $siteName = SystemConfigService::get('site_name');
+ $instance->setContent($siteName,is_object($order) ? $order->toArray() : $order,$product)->orderPrinting();
+ }catch (\Exception $e){
+ Log::error('小票打印出现错误,错误原因:'.$e->getMessage());
+ }
+ }
+ }
+
}
\ No newline at end of file
diff --git a/crmeb/crmeb/traits/LogicTrait.php b/crmeb/crmeb/traits/LogicTrait.php
index 398a37f6..0f91a93f 100644
--- a/crmeb/crmeb/traits/LogicTrait.php
+++ b/crmeb/crmeb/traits/LogicTrait.php
@@ -12,24 +12,7 @@ trait LogicTrait
protected $items = [];
- /*
- * 魔术方法 对不可访问或不存在的属性调用
- *
- * */
- public function __isset($name)
- {
-
- }
-
- /*
- * 魔术方法 对不可访问或不存在的属性进行unset时被调用
- * */
- public function __unset($name)
- {
-
- }
-
- /*
+ /**
* 静态方法调用
* @param string $method 调用方法
* @param mixed $args 参数
@@ -39,7 +22,7 @@ trait LogicTrait
}
- /*
+ /**
* 执行本类的方法
* @param string $carryoutname 方法名
* @return boolean
@@ -55,10 +38,10 @@ trait LogicTrait
}
}
- /*
+ /**
* 配置参数
- *
- * */
+ * @param array $config
+ */
protected function setConfig(array $config=[])
{
foreach ($config as $key => $value) {
@@ -66,12 +49,13 @@ trait LogicTrait
}
}
- /*
+ /**
* 设置参数
- * @param array $array
- * @param string $key
- * @param string $value
- * */
+ * @param $array
+ * @param $key
+ * @param $value
+ * @return mixed
+ */
protected function set(&$array, $key, $value)
{
if (is_null($key)) return $array = $value;
@@ -87,10 +71,9 @@ trait LogicTrait
return $array;
}
- /*
+ /**
* 实例化类
- *
- * */
+ */
protected function registerProviders()
{
foreach ($this->providers as $key=>$provider)
@@ -99,10 +82,10 @@ trait LogicTrait
}
}
- /*
+ /**
* 获取类内配置信息
* @param object $pimple
- * @return this
+ * @return $this
* */
protected function register($pimple,$key)
{
@@ -116,10 +99,10 @@ trait LogicTrait
return $this;
}
- /*
+ /**
* 实例化本类
* @param array $config
- * @return this
+ * @return $this
* */
public static function instance($config=[])
{
diff --git a/crmeb/public/install/.env b/crmeb/public/install/.env
index 743d0184..fd92cd98 100644
--- a/crmeb/public/install/.env
+++ b/crmeb/public/install/.env
@@ -1 +1 @@
-APP_DEBUG = true
[APP]
DEFAULT_TIMEZONE = Asia/Shanghai
[DATABASE]
TYPE = mysql
HOSTNAME = #DB_HOST#
HOSTPORT = #DB_PORT#
USERNAME = #DB_USER#
PASSWORD = #DB_PWD#
DATABASE = #DB_NAME#
PREFIX = #DB_PREFIX#
CHARSET = utf8
DEBUG = true
[LANG]
default_lang = zh-cn
\ No newline at end of file
+APP_DEBUG = true
[APP]
DEFAULT_TIMEZONE = Asia/Shanghai
[DATABASE]
TYPE = mysql
HOSTNAME = #DB_HOST#
HOSTPORT = #DB_PORT#
USERNAME = #DB_USER#
PASSWORD = '#DB_PWD#'
DATABASE = #DB_NAME#
PREFIX = #DB_PREFIX#
CHARSET = utf8
DEBUG = true
[LANG]
default_lang = zh-cn
\ No newline at end of file
diff --git a/crmeb/public/install/crmeb.sql b/crmeb/public/install/crmeb.sql
index f91bc701..c6dec217 100644
--- a/crmeb/public/install/crmeb.sql
+++ b/crmeb/public/install/crmeb.sql
@@ -17,7 +17,7 @@ SET time_zone = "+00:00";
/*!40101 SET NAMES utf8 */;
--
--- 数据库: `crmeb_v3_ky`
+-- 数据库: `crmeb_v30_test1`
--
-- --------------------------------------------------------
@@ -43,6 +43,7 @@ CREATE TABLE IF NOT EXISTS `eb_article` (
`hide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隐藏',
`admin_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理员id',
`mer_id` int(10) unsigned DEFAULT '0' COMMENT '商户id',
+ `product_id` int(10) NOT NULL DEFAULT '0' COMMENT '产品关联id',
`is_hot` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否热门(小程序)',
`is_banner` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否轮播图(小程序)',
PRIMARY KEY (`id`) USING BTREE
@@ -101,10 +102,10 @@ CREATE TABLE IF NOT EXISTS `eb_cache` (
CREATE TABLE IF NOT EXISTS `eb_express` (
`id` mediumint(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '快递公司id',
- `code` varchar(50) NOT NULL COMMENT '快递公司简称',
- `name` varchar(50) NOT NULL COMMENT '快递公司全称',
- `sort` int(11) NOT NULL COMMENT '排序',
- `is_show` tinyint(1) NOT NULL COMMENT '是否显示',
+ `code` varchar(50) NOT NULL DEFAULT '' COMMENT '快递公司简称',
+ `name` varchar(50) NOT NULL DEFAULT '' COMMENT '快递公司全称',
+ `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
+ `is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `code` (`code`) USING BTREE,
KEY `is_show` (`is_show`) USING BTREE
@@ -628,6 +629,82 @@ INSERT INTO `eb_routine_template` (`id`, `tempkey`, `name`, `content`, `tempid`,
-- --------------------------------------------------------
+--
+-- 表的结构 `eb_store_bargain`
+--
+
+CREATE TABLE IF NOT EXISTS `eb_store_bargain` (
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '砍价产品ID',
+ `product_id` int(11) unsigned NOT NULL COMMENT '关联产品ID',
+ `title` varchar(255) NOT NULL COMMENT '砍价活动名称',
+ `image` varchar(150) NOT NULL COMMENT '砍价活动图片',
+ `unit_name` varchar(16) DEFAULT NULL COMMENT '单位名称',
+ `stock` int(11) unsigned DEFAULT NULL COMMENT '库存',
+ `sales` int(11) unsigned DEFAULT NULL COMMENT '销量',
+ `images` varchar(2000) NOT NULL COMMENT '砍价产品轮播图',
+ `start_time` int(11) unsigned NOT NULL COMMENT '砍价开启时间',
+ `stop_time` int(11) unsigned NOT NULL COMMENT '砍价结束时间',
+ `store_name` varchar(255) DEFAULT NULL COMMENT '砍价产品名称',
+ `price` decimal(8,2) unsigned DEFAULT NULL COMMENT '砍价金额',
+ `min_price` decimal(8,2) unsigned DEFAULT NULL COMMENT '砍价商品最低价',
+ `num` int(11) unsigned DEFAULT NULL COMMENT '每次购买的砍价产品数量',
+ `bargain_max_price` decimal(8,2) unsigned DEFAULT NULL COMMENT '用户每次砍价的最大金额',
+ `bargain_min_price` decimal(8,2) unsigned DEFAULT NULL COMMENT '用户每次砍价的最小金额',
+ `bargain_num` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '用户每次砍价的次数',
+ `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '砍价状态 0(到砍价时间不自动开启) 1(到砍价时间自动开启时间)',
+ `description` text COMMENT '砍价详情',
+ `give_integral` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '反多少积分',
+ `info` varchar(255) DEFAULT NULL COMMENT '砍价活动简介',
+ `cost` decimal(8,2) unsigned DEFAULT NULL COMMENT '成本价',
+ `sort` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '排序',
+ `is_hot` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否推荐0不推荐1推荐',
+ `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0未删除 1删除',
+ `add_time` int(11) unsigned DEFAULT NULL COMMENT '添加时间',
+ `is_postage` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否包邮 0不包邮 1包邮',
+ `postage` decimal(10,2) unsigned DEFAULT NULL COMMENT '邮费',
+ `rule` text COMMENT '砍价规则',
+ `look` int(11) unsigned DEFAULT '0' COMMENT '砍价产品浏览量',
+ `share` int(11) unsigned DEFAULT '0' COMMENT '砍价产品分享量',
+ PRIMARY KEY (`id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='砍价表' AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `eb_store_bargain_user`
+--
+
+CREATE TABLE IF NOT EXISTS `eb_store_bargain_user` (
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户参与砍价表ID',
+ `uid` int(11) unsigned DEFAULT NULL COMMENT '用户ID',
+ `bargain_id` int(11) unsigned DEFAULT NULL COMMENT '砍价产品id',
+ `bargain_price_min` decimal(8,2) unsigned DEFAULT NULL COMMENT '砍价的最低价',
+ `bargain_price` decimal(8,2) DEFAULT NULL COMMENT '砍价金额',
+ `price` decimal(8,2) unsigned DEFAULT NULL COMMENT '砍掉的价格',
+ `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态 1参与中 2 活动结束参与失败 3活动结束参与成功',
+ `add_time` int(11) unsigned DEFAULT NULL COMMENT '参与时间',
+ `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否取消',
+ PRIMARY KEY (`id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户参与砍价表' AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `eb_store_bargain_user_help`
+--
+
+CREATE TABLE IF NOT EXISTS `eb_store_bargain_user_help` (
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '砍价用户帮助表ID',
+ `uid` int(11) unsigned DEFAULT NULL COMMENT '帮助的用户id',
+ `bargain_id` int(11) unsigned DEFAULT NULL COMMENT '砍价产品ID',
+ `bargain_user_id` int(11) unsigned DEFAULT NULL COMMENT '用户参与砍价表id',
+ `price` decimal(8,2) unsigned DEFAULT NULL COMMENT '帮助砍价多少金额',
+ `add_time` int(11) unsigned DEFAULT NULL COMMENT '添加时间',
+ PRIMARY KEY (`id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='砍价用户帮助表' AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
--
-- 表的结构 `eb_store_cart`
--
@@ -709,6 +786,89 @@ INSERT INTO `eb_store_category` (`id`, `pid`, `cate_name`, `sort`, `pic`, `is_sh
-- --------------------------------------------------------
+--
+-- 表的结构 `eb_store_combination`
+--
+
+CREATE TABLE IF NOT EXISTS `eb_store_combination` (
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `product_id` int(10) unsigned NOT NULL COMMENT '商品id',
+ `mer_id` int(10) unsigned DEFAULT '0' COMMENT '商户id',
+ `image` varchar(255) NOT NULL COMMENT '推荐图',
+ `images` varchar(2000) NOT NULL COMMENT '轮播图',
+ `title` varchar(255) NOT NULL COMMENT '活动标题',
+ `attr` varchar(255) DEFAULT NULL COMMENT '活动属性',
+ `people` int(2) unsigned NOT NULL COMMENT '参团人数',
+ `info` varchar(255) NOT NULL COMMENT '简介',
+ `price` decimal(10,2) unsigned NOT NULL COMMENT '价格',
+ `sort` int(10) unsigned NOT NULL COMMENT '排序',
+ `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '销量',
+ `stock` int(10) unsigned NOT NULL COMMENT '库存',
+ `add_time` varchar(128) NOT NULL COMMENT '添加时间',
+ `is_host` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '推荐',
+ `is_show` tinyint(1) unsigned NOT NULL COMMENT '产品状态',
+ `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0',
+ `combination` tinyint(1) unsigned NOT NULL DEFAULT '1',
+ `mer_use` tinyint(1) unsigned DEFAULT NULL COMMENT '商户是否可用1可用0不可用',
+ `is_postage` tinyint(1) unsigned NOT NULL COMMENT '是否包邮1是0否',
+ `postage` decimal(10,2) unsigned NOT NULL COMMENT '邮费',
+ `description` text NOT NULL COMMENT '拼团内容',
+ `start_time` int(11) unsigned NOT NULL COMMENT '拼团开始时间',
+ `stop_time` int(11) unsigned NOT NULL COMMENT '拼团结束时间',
+ `effective_time` int(11) NOT NULL DEFAULT '0' COMMENT '拼团订单有效时间',
+ `cost` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '拼图产品成本',
+ `browse` int(11) DEFAULT '0' COMMENT '浏览量',
+ `unit_name` varchar(32) NOT NULL DEFAULT '' COMMENT '单位名',
+ PRIMARY KEY (`id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='拼团产品表' AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `eb_store_combination_attr`
+--
+
+CREATE TABLE IF NOT EXISTS `eb_store_combination_attr` (
+ `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID',
+ `attr_name` varchar(32) NOT NULL COMMENT '属性名',
+ `attr_values` varchar(256) NOT NULL COMMENT '属性值',
+ KEY `store_id` (`product_id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品属性表';
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `eb_store_combination_attr_result`
+--
+
+CREATE TABLE IF NOT EXISTS `eb_store_combination_attr_result` (
+ `product_id` int(10) unsigned NOT NULL COMMENT '商品ID',
+ `result` text NOT NULL COMMENT '商品属性参数',
+ `change_time` int(10) unsigned NOT NULL COMMENT '上次修改时间',
+ UNIQUE KEY `product_id` (`product_id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品属性详情表';
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `eb_store_combination_attr_value`
+--
+
+CREATE TABLE IF NOT EXISTS `eb_store_combination_attr_value` (
+ `product_id` int(10) unsigned NOT NULL COMMENT '商品ID',
+ `suk` varchar(128) NOT NULL COMMENT '商品属性索引值 (attr_value|attr_value[|....])',
+ `stock` int(10) unsigned NOT NULL COMMENT '属性对应的库存',
+ `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '销量',
+ `price` decimal(8,2) unsigned NOT NULL COMMENT '属性金额',
+ `image` varchar(128) DEFAULT NULL COMMENT '图片',
+ `unique` char(8) NOT NULL DEFAULT '' COMMENT '唯一值',
+ `cost` decimal(8,2) unsigned NOT NULL COMMENT '成本价',
+ UNIQUE KEY `unique` (`unique`,`suk`) USING BTREE,
+ KEY `store_id` (`product_id`,`suk`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品属性值表';
+
+-- --------------------------------------------------------
+
--
-- 表的结构 `eb_store_coupon`
--
@@ -849,9 +1009,12 @@ CREATE TABLE IF NOT EXISTS `eb_store_order` (
`cost` decimal(8,2) unsigned NOT NULL COMMENT '成本价',
`seckill_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '秒杀产品ID',
`bargain_id` int(11) unsigned DEFAULT '0' COMMENT '砍价id',
+ `verify_code` varchar(12) NOT NULL DEFAULT '' COMMENT '核销码',
+ `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店id',
+ `shipping_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '配送方式 1=快递 ,2=门店自提',
`is_channel` tinyint(1) unsigned DEFAULT '0' COMMENT '支付渠道(0微信公众号1微信小程序)',
- `is_remind` tinyint(1) unsigned DEFAULT '0',
- `is_system_del` tinyint(1) DEFAULT '0',
+ `is_remind` tinyint(1) unsigned DEFAULT '0' COMMENT '消息提醒',
+ `is_system_del` tinyint(1) DEFAULT '0' COMMENT '后台是否删除',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `order_id_2` (`order_id`,`uid`) USING BTREE,
UNIQUE KEY `unique` (`unique`) USING BTREE,
@@ -900,6 +1063,32 @@ CREATE TABLE IF NOT EXISTS `eb_store_order_status` (
-- --------------------------------------------------------
+--
+-- 表的结构 `eb_store_pink`
+--
+
+CREATE TABLE IF NOT EXISTS `eb_store_pink` (
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `uid` int(10) unsigned NOT NULL COMMENT '用户id',
+ `order_id` varchar(32) NOT NULL COMMENT '订单id 生成',
+ `order_id_key` int(10) unsigned NOT NULL COMMENT '订单id 数据库',
+ `total_num` int(10) unsigned NOT NULL COMMENT '购买商品个数',
+ `total_price` decimal(10,2) unsigned NOT NULL COMMENT '购买总金额',
+ `cid` int(10) unsigned NOT NULL COMMENT '拼团产品id',
+ `pid` int(10) unsigned NOT NULL COMMENT '产品id',
+ `people` int(10) unsigned NOT NULL COMMENT '拼图总人数',
+ `price` decimal(10,2) unsigned NOT NULL COMMENT '拼团产品单价',
+ `add_time` varchar(24) NOT NULL COMMENT '开始时间',
+ `stop_time` varchar(24) NOT NULL,
+ `k_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '团长id 0为团长',
+ `is_tpl` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否发送模板消息0未发送1已发送',
+ `is_refund` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否退款 0未退款 1已退款',
+ `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态1进行中2已完成3未完成',
+ PRIMARY KEY (`id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='拼团表' AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
--
-- 表的结构 `eb_store_product`
--
@@ -912,6 +1101,7 @@ CREATE TABLE IF NOT EXISTS `eb_store_product` (
`store_name` varchar(128) NOT NULL COMMENT '商品名称',
`store_info` varchar(256) NOT NULL COMMENT '商品简介',
`keyword` varchar(256) NOT NULL COMMENT '关键字',
+ `bar_code` varchar(15) NOT NULL DEFAULT '' COMMENT '产品条码(一维码)' ,
`cate_id` varchar(64) NOT NULL COMMENT '分类id',
`price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '商品价格',
`vip_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '会员价格',
@@ -935,9 +1125,10 @@ CREATE TABLE IF NOT EXISTS `eb_store_product` (
`cost` decimal(8,2) unsigned NOT NULL COMMENT '成本价',
`is_seckill` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '秒杀状态 0 未开启 1已开启',
`is_bargain` tinyint(1) unsigned DEFAULT NULL COMMENT '砍价状态 0未开启 1开启',
+ `is_good` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否优品推荐',
`ficti` mediumint(11) DEFAULT '100' COMMENT '虚拟销量',
`browse` int(11) DEFAULT '0' COMMENT '浏览量',
- `code_path` varchar(64) NOT NULL COMMENT '产品二维码地址(用户小程序海报)',
+ `code_path` varchar(64) NOT NULL DEFAULT '' COMMENT '产品二维码地址(用户小程序海报)',
`soure_link` varchar(255) DEFAULT '' COMMENT '淘宝京东1688类型',
PRIMARY KEY (`id`) USING BTREE,
KEY `cate_id` (`cate_id`) USING BTREE,
@@ -1047,6 +1238,7 @@ CREATE TABLE IF NOT EXISTS `eb_store_product_attr_value` (
`image` varchar(128) DEFAULT NULL COMMENT '图片',
`unique` char(8) NOT NULL DEFAULT '' COMMENT '唯一值',
`cost` decimal(8,2) unsigned NOT NULL COMMENT '成本价',
+ `bar_code` varchar(50) NOT NULL DEFAULT '' COMMENT '产品条码',
UNIQUE KEY `unique` (`unique`,`suk`) USING BTREE,
KEY `store_id` (`product_id`,`suk`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品属性值表';
@@ -1323,7 +1515,7 @@ CREATE TABLE IF NOT EXISTS `eb_system_admin` (
`roles` varchar(128) NOT NULL COMMENT '后台管理员权限(menus_id)',
`last_ip` varchar(16) DEFAULT NULL COMMENT '后台管理员最后一次登录ip',
`last_time` int(10) unsigned DEFAULT NULL COMMENT '后台管理员最后一次登录时间',
- `add_time` int(10) unsigned NOT NULL COMMENT '后台管理员添加时间',
+ `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '后台管理员添加时间',
`login_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '登录次数',
`level` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '后台管理员级别',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '后台管理员状态 1有效0无效',
@@ -1331,14 +1523,14 @@ CREATE TABLE IF NOT EXISTS `eb_system_admin` (
PRIMARY KEY (`id`) USING BTREE,
KEY `account` (`account`) USING BTREE,
KEY `status` (`status`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='后台管理员表' AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='后台管理员表' AUTO_INCREMENT=5 ;
--
-- 转存表中的数据 `eb_system_admin`
--
INSERT INTO `eb_system_admin` (`id`, `account`, `pwd`, `real_name`, `roles`, `last_ip`, `last_time`, `add_time`, `login_count`, `level`, `status`, `is_del`) VALUES
-(1, 'admin', 'e10adc3949ba59abbe56e057f20f883e', 'admin', '1', '127.0.0.1', 1566874006, 1566873825, 0, 0, 1, 0);
+(1, 'admin', 'e10adc3949ba59abbe56e057f20f883e', 'admin', '1', '127.0.0.1', 0, 0, 0, 0, 1, 0);
-- --------------------------------------------------------
@@ -1347,18 +1539,1204 @@ INSERT INTO `eb_system_admin` (`id`, `account`, `pwd`, `real_name`, `roles`, `la
--
CREATE TABLE IF NOT EXISTS `eb_system_attachment` (
- `att_id` int(10) NOT NULL AUTO_INCREMENT,
+ `att_id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL DEFAULT '' COMMENT '附件名称',
`att_dir` varchar(200) NOT NULL DEFAULT '' COMMENT '附件路径',
- `satt_dir` varchar(200) DEFAULT NULL COMMENT '压缩图片路径',
+ `satt_dir` varchar(200) DEFAULT NULL DEFAULT NULL COMMENT '压缩图片路径',
`att_size` char(30) NOT NULL DEFAULT '' COMMENT '附件大小',
`att_type` char(30) NOT NULL DEFAULT '' COMMENT '附件类型',
- `pid` int(10) NOT NULL DEFAULT '0' COMMENT '分类ID0编辑器,1产品图片,2拼团图片,3砍价图片,4秒杀图片,5文章图片,6组合数据图',
- `time` int(11) NOT NULL DEFAULT '0' COMMENT '上传时间',
+ `pid` int(10) NOT NULL DEFAULT 0 COMMENT '分类ID0编辑器,1产品图片,2拼团图片,3砍价图片,4秒杀图片,5文章图片,6组合数据图',
+ `time` int(11) NOT NULL DEFAULT 0 COMMENT '上传时间',
`image_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '图片上传类型 1本地 2七牛云 3OSS 4COS ',
`module_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '图片上传模块类型 1 后台上传 2 用户生成',
PRIMARY KEY (`att_id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='附件管理表' AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='附件管理表' AUTO_INCREMENT=1204 ;
+
+--
+-- 表的结构 `eb_system_store`
+--
+
+CREATE TABLE `eb_system_store` (
+ `id`int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL DEFAULT '' COMMENT '门店名称',
+ `introduction` varchar(1000) NOT NULL DEFAULT '' COMMENT '简介',
+ `phone` char(25) NOT NULL DEFAULT '' COMMENT '手机号码',
+ `address` varchar(255) NOT NULL DEFAULT '' COMMENT '省市区',
+ `detailed_address` varchar(255) NOT NULL DEFAULT '' COMMENT '详细地址',
+ `image` varchar(255) NOT NULL DEFAULT '' COMMENT '门店logo',
+ `latitude` char(25) NOT NULL DEFAULT '' COMMENT '纬度',
+ `longitude` char(25) NOT NULL DEFAULT '' COMMENT '经度',
+ `valid_time` varchar(100) NOT NULL DEFAULT '' COMMENT '核销有效日期',
+ `day_time` varchar(100) NOT NULL DEFAULT '' COMMENT '每日营业开关时间',
+ `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间',
+ `is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示',
+ `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除',
+ PRIMARY KEY (`id`) USING BTREE,
+ KEY `phone` (`phone`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='门店自提';
+
+--
+-- 转存表中的数据 `eb_system_attachment`
+--
+
+INSERT INTO `eb_system_attachment` (`att_id`, `name`, `att_dir`, `satt_dir`, `att_size`, `att_type`, `pid`, `time`, `image_type`, `module_type`) VALUES
+(12, '168_1_user.jpg', '/uploads/routine/spread/code/168_1_user.jpg', '/uploads/routine/spread/code/168_1_user.jpg', '50431', 'image/jpeg', 1, 1563177732, 1, 2),
+(13, '2b6d620190715160332336066.jpg', '/uploads/routine/spread/poster/2b6d620190715160332336066.jpg', '/uploads/routine/spread/poster/2b6d620190715160332336066.jpg', '82774', 'image/jpeg', 1, 1563177812, 1, 2),
+(14, 'b5b0d20190715160333254748.jpg', '/uploads/routine/spread/poster/b5b0d20190715160333254748.jpg', '/uploads/routine/spread/poster/b5b0d20190715160333254748.jpg', '54643', 'image/jpeg', 1, 1563177813, 1, 2),
+(15, '4409220190715160333270310.jpg', '/uploads/routine/spread/poster/4409220190715160333270310.jpg', '/uploads/routine/spread/poster/4409220190715160333270310.jpg', '75479', 'image/jpeg', 1, 1563177813, 1, 2),
+(16, '3_168_1_pink_share.jpg', '/uploads/routine/activity/pink/code/3_168_1_pink_share.jpg', '/uploads/routine/activity/pink/code/3_168_1_pink_share.jpg', '48726', 'image/jpeg', 1, 1563273359, 1, 2),
+(17, 'dfea020190716183820281488.jpg', '/uploads/routine/activity/pink/poster/dfea020190716183820281488.jpg', '/uploads/routine/activity/pink/poster/dfea020190716183820281488.jpg', '45247', 'image/jpeg', 1, 1563273500, 1, 2),
+(18, '6e66320190716183925393446.jpg', '/uploads/routine/activity/pink/poster/6e66320190716183925393446.jpg', '/uploads/routine/activity/pink/poster/6e66320190716183925393446.jpg', '45247', 'image/jpeg', 1, 1563273565, 1, 2),
+(19, '3b24120190716183958426296.jpg', '/uploads/routine/activity/pink/poster/3b24120190716183958426296.jpg', '/uploads/routine/activity/pink/poster/3b24120190716183958426296.jpg', '45247', 'image/jpeg', 1, 1563273598, 1, 2),
+(21, 'c142dc6f250734afe28f3341d196a580.jpg', '/uploads/store/comment/20190718\\c142dc6f250734afe28f3341d196a580.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190718\\s_c142dc6f250734afe28f3341d196a580.jpg', '8773', 'image/jpeg', 1, 1563420555, 1, 2),
+(22, '10___bargain_share.jpg', '/uploads/routine/activity/bargain/code/10___bargain_share.jpg', '/uploads/routine/activity/bargain/code/10___bargain_share.jpg', '53629', 'image/jpeg', 1, 1563439726, 1, 2),
+(23, '10_168_1_bargain_share.jpg', '/uploads/routine/activity/bargain/code/10_168_1_bargain_share.jpg', '/uploads/routine/activity/bargain/code/10_168_1_bargain_share.jpg', '54706', 'image/jpeg', 1, 1563439783, 1, 2),
+(24, '663682019071816501132703.jpg', '/uploads/routine/activity/bargain/poster/663682019071816501132703.jpg', '/uploads/routine/activity/bargain/poster/663682019071816501132703.jpg', '46096', 'image/jpeg', 1, 1563439811, 1, 2),
+(25, 'eaa5220190718165029826312.jpg', '/uploads/routine/activity/bargain/poster/eaa5220190718165029826312.jpg', '/uploads/routine/activity/bargain/poster/eaa5220190718165029826312.jpg', '46096', 'image/jpeg', 1, 1563439829, 1, 2),
+(26, '10_1_0_bargain_share.jpg', '/uploads/routine/activity/bargain/code/10_1_0_bargain_share.jpg', '/uploads/routine/activity/bargain/code/10_1_0_bargain_share.jpg', '55184', 'image/jpeg', 1, 1563440060, 1, 2),
+(27, 'b049020190718165420905273.jpg', '/uploads/routine/activity/bargain/poster/b049020190718165420905273.jpg', '/uploads/routine/activity/bargain/poster/b049020190718165420905273.jpg', '46130', 'image/jpeg', 1, 1563440060, 1, 2),
+(28, '58a2f2019071816550128018.jpg', '/uploads/routine/activity/bargain/poster/58a2f2019071816550128018.jpg', '/uploads/routine/activity/bargain/poster/58a2f2019071816550128018.jpg', '46130', 'image/jpeg', 1, 1563440101, 1, 2),
+(29, '285a220190718170251156695.jpg', '/uploads/routine/activity/bargain/poster/285a220190718170251156695.jpg', '/uploads/routine/activity/bargain/poster/285a220190718170251156695.jpg', '46130', 'image/jpeg', 1, 1563440571, 1, 2),
+(33, '8744c20190718170531488631.jpg', '/uploads/routine/activity/bargain/poster/8744c20190718170531488631.jpg', '/uploads/routine/activity/bargain/poster/8744c20190718170531488631.jpg', '46130', 'image/jpeg', 1, 1563440731, 1, 2),
+(34, '0704220190718172553515311.jpg', '/uploads/routine/activity/bargain/poster/0704220190718172553515311.jpg', '/uploads/routine/activity/bargain/poster/0704220190718172553515311.jpg', '46130', 'image/jpeg', 1, 1563441953, 1, 2),
+(35, '7_1_0_pink_share.jpg', '/uploads/routine/activity/pink/code/7_1_0_pink_share.jpg', '/uploads/routine/activity/pink/code/7_1_0_pink_share.jpg', '48636', 'image/jpeg', 1, 1563504328, 1, 2),
+(36, '6_1_0_pink_share.jpg', '/uploads/routine/activity/pink/code/6_1_0_pink_share.jpg', '/uploads/routine/activity/pink/code/6_1_0_pink_share.jpg', '49412', 'image/jpeg', 1, 1563504466, 1, 2),
+(37, 'f80ff20190719104746932275.jpg', '/uploads/routine/activity/pink/poster/f80ff20190719104746932275.jpg', '/uploads/routine/activity/pink/poster/f80ff20190719104746932275.jpg', '45127', 'image/jpeg', 1, 1563504466, 1, 2),
+(38, 'afa2920190719104752727792.jpg', '/uploads/routine/activity/pink/poster/afa2920190719104752727792.jpg', '/uploads/routine/activity/pink/poster/afa2920190719104752727792.jpg', '45127', 'image/jpeg', 1, 1563504472, 1, 2),
+(39, 'ba9a520190719104831534994.jpg', '/uploads/routine/activity/pink/poster/ba9a520190719104831534994.jpg', '/uploads/routine/activity/pink/poster/ba9a520190719104831534994.jpg', '45127', 'image/jpeg', 1, 1563504511, 1, 2),
+(40, '050492019071910483639409.jpg', '/uploads/routine/activity/pink/poster/050492019071910483639409.jpg', '/uploads/routine/activity/pink/poster/050492019071910483639409.jpg', '45127', 'image/jpeg', 1, 1563504516, 1, 2),
+(41, 'f0e6b20190719104923546522.jpg', '/uploads/routine/activity/pink/poster/f0e6b20190719104923546522.jpg', '/uploads/routine/activity/pink/poster/f0e6b20190719104923546522.jpg', '45127', 'image/jpeg', 1, 1563504563, 1, 2),
+(42, 'd17e620190719104953992864.jpg', '/uploads/routine/activity/pink/poster/d17e620190719104953992864.jpg', '/uploads/routine/activity/pink/poster/d17e620190719104953992864.jpg', '45127', 'image/jpeg', 1, 1563504593, 1, 2),
+(43, 'bdc8b20190719105133834434.jpg', '/uploads/routine/activity/pink/poster/bdc8b20190719105133834434.jpg', '/uploads/routine/activity/pink/poster/bdc8b20190719105133834434.jpg', '45127', 'image/jpeg', 1, 1563504693, 1, 2),
+(44, '87f4d20190719105137310521.jpg', '/uploads/routine/activity/pink/poster/87f4d20190719105137310521.jpg', '/uploads/routine/activity/pink/poster/87f4d20190719105137310521.jpg', '45127', 'image/jpeg', 1, 1563504697, 1, 2),
+(45, 'f93fefadd6424621601198bed88e2ea3.png', '/uploads/store/comment/20190719\\f93fefadd6424621601198bed88e2ea3.png', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_f93fefadd6424621601198bed88e2ea3.png', '608612', 'image/png', 1, 1563508598, 1, 2),
+(46, '6f3169dcdb59144a81b06ba82c07618a.jpg', '/uploads/store/comment/20190719\\6f3169dcdb59144a81b06ba82c07618a.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_6f3169dcdb59144a81b06ba82c07618a.jpg', '6172', 'image/jpeg', 1, 1563508629, 1, 2),
+(47, '1f712a266283991d9ab09bab09045193.jpg', '/uploads/store/comment/20190719\\1f712a266283991d9ab09bab09045193.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_1f712a266283991d9ab09bab09045193.jpg', '6172', 'image/jpeg', 1, 1563508686, 1, 2),
+(48, '2bc128a4e1095c754e8452faadceb6e9.jpg', '/uploads/store/comment/20190719\\2bc128a4e1095c754e8452faadceb6e9.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_2bc128a4e1095c754e8452faadceb6e9.jpg', '7278', 'image/jpeg', 1, 1563508700, 1, 2),
+(49, 'a082028fe47056b4989026e84241ee64.jpg', '/uploads/store/comment/20190719\\a082028fe47056b4989026e84241ee64.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_a082028fe47056b4989026e84241ee64.jpg', '7278', 'image/jpeg', 1, 1563522863, 1, 2),
+(50, 'bc5922f4c6293ee19baf506a41b018f9.jpg', '/uploads/store/comment/20190719\\bc5922f4c6293ee19baf506a41b018f9.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_bc5922f4c6293ee19baf506a41b018f9.jpg', '6172', 'image/jpeg', 1, 1563522868, 1, 2),
+(51, 'e364e279736147ee751d52890384c180.jpg', '/uploads/store/comment/20190719\\e364e279736147ee751d52890384c180.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_e364e279736147ee751d52890384c180.jpg', '6172', 'image/jpeg', 1, 1563522872, 1, 2),
+(52, 'ff531ee1821d1337b49ef54d72c64275.jpg', '/uploads/store/comment/20190719\\ff531ee1821d1337b49ef54d72c64275.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_ff531ee1821d1337b49ef54d72c64275.jpg', '7278', 'image/jpeg', 1, 1563523815, 1, 2),
+(53, 'e69a1c8fde5f2c2e7a03cf73760e376e.jpg', '/uploads/store/comment/20190719\\e69a1c8fde5f2c2e7a03cf73760e376e.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_e69a1c8fde5f2c2e7a03cf73760e376e.jpg', '7278', 'image/jpeg', 1, 1563524060, 1, 2),
+(54, 'e92ae2a03194838b9b8493b46fab11eb.jpg', '/uploads/store/comment/20190719\\e92ae2a03194838b9b8493b46fab11eb.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_e92ae2a03194838b9b8493b46fab11eb.jpg', '6172', 'image/jpeg', 1, 1563524064, 1, 2),
+(55, '54b4b97b44e32120567ebb49fdf66326.jpg', '/uploads/store/comment/20190719\\54b4b97b44e32120567ebb49fdf66326.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_54b4b97b44e32120567ebb49fdf66326.jpg', '7278', 'image/jpeg', 1, 1563524092, 1, 2),
+(56, '25ae78adfae15270772cfa0e104b5f50.jpg', '/uploads/store/comment/20190719\\25ae78adfae15270772cfa0e104b5f50.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_25ae78adfae15270772cfa0e104b5f50.jpg', '7278', 'image/jpeg', 1, 1563525515, 1, 2),
+(57, '87589beb60c343247d37e6e1c6e7b6f8.jpg', '/uploads/store/comment/20190719\\87589beb60c343247d37e6e1c6e7b6f8.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_87589beb60c343247d37e6e1c6e7b6f8.jpg', '7278', 'image/jpeg', 1, 1563525596, 1, 2),
+(58, 'c6feb426f18fc3d45f9742d118ea6121.jpg', '/uploads/store/comment/20190719\\c6feb426f18fc3d45f9742d118ea6121.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_c6feb426f18fc3d45f9742d118ea6121.jpg', '6172', 'image/jpeg', 1, 1563525608, 1, 2),
+(59, '2ea30591046534a53ccfc84bd1bed2eb.jpg', '/uploads/store/comment/20190719\\2ea30591046534a53ccfc84bd1bed2eb.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_2ea30591046534a53ccfc84bd1bed2eb.jpg', '7278', 'image/jpeg', 1, 1563525659, 1, 2),
+(60, 'e8e87ce4d9384676449038d6a9740638.jpg', '/uploads/store/comment/20190719\\e8e87ce4d9384676449038d6a9740638.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_e8e87ce4d9384676449038d6a9740638.jpg', '7278', 'image/jpeg', 1, 1563525663, 1, 2),
+(61, 'ac9d5e1b645472781086c14e68a22b8b.jpg', '/uploads/store/comment/20190719\\ac9d5e1b645472781086c14e68a22b8b.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_ac9d5e1b645472781086c14e68a22b8b.jpg', '7278', 'image/jpeg', 1, 1563527983, 1, 2),
+(62, 'd244c78f753094ee1d3e4f5b5f43baa4.jpg', '/uploads/store/comment/20190719\\d244c78f753094ee1d3e4f5b5f43baa4.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_d244c78f753094ee1d3e4f5b5f43baa4.jpg', '7278', 'image/jpeg', 1, 1563528763, 1, 2),
+(63, '7c22643a6e26fe2144a0b046db20d540.jpg', '/uploads/store/comment/20190719\\7c22643a6e26fe2144a0b046db20d540.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_7c22643a6e26fe2144a0b046db20d540.jpg', '7278', 'image/jpeg', 1, 1563528767, 1, 2),
+(64, 'c48faf58ba34bb00ee4b25712bb65096.jpg', '/uploads/store/comment/20190719\\c48faf58ba34bb00ee4b25712bb65096.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_c48faf58ba34bb00ee4b25712bb65096.jpg', '6172', 'image/jpeg', 1, 1563528773, 1, 2),
+(65, '0feb6696dc8a7c29d7eaa2907a6e3567.jpg', '/uploads/store/comment/20190719\\0feb6696dc8a7c29d7eaa2907a6e3567.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_0feb6696dc8a7c29d7eaa2907a6e3567.jpg', '7278', 'image/jpeg', 1, 1563528777, 1, 2),
+(66, '95b3f6e01a34af6d2f2f7b3de2e92efa.jpg', '/uploads/store/comment/20190719\\95b3f6e01a34af6d2f2f7b3de2e92efa.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_95b3f6e01a34af6d2f2f7b3de2e92efa.jpg', '7278', 'image/jpeg', 1, 1563528781, 1, 2),
+(67, '0584f0181b2adfb55063b666e3ce4a61.jpg', '/uploads/store/comment/20190719\\0584f0181b2adfb55063b666e3ce4a61.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_0584f0181b2adfb55063b666e3ce4a61.jpg', '6172', 'image/jpeg', 1, 1563528785, 1, 2),
+(68, 'db5ee5d0ef70cc542b73f139a275ebb3.jpg', '/uploads/store/comment/20190719\\db5ee5d0ef70cc542b73f139a275ebb3.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_db5ee5d0ef70cc542b73f139a275ebb3.jpg', '7278', 'image/jpeg', 1, 1563528789, 1, 2),
+(69, 'd6599f99cbb92a682bb3d81c8f7fd060.jpg', '/uploads/store/comment/20190719\\d6599f99cbb92a682bb3d81c8f7fd060.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_d6599f99cbb92a682bb3d81c8f7fd060.jpg', '7278', 'image/jpeg', 1, 1563528793, 1, 2),
+(70, 'c85548b7f053a3d75da82d2be605de85.jpg', '/uploads/store/comment/20190719\\c85548b7f053a3d75da82d2be605de85.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_c85548b7f053a3d75da82d2be605de85.jpg', '6172', 'image/jpeg', 1, 1563528797, 1, 2),
+(71, '9c850ec634ed40c3fc02e1f1cb9a2508.jpg', '/uploads/store/comment/20190719\\9c850ec634ed40c3fc02e1f1cb9a2508.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_9c850ec634ed40c3fc02e1f1cb9a2508.jpg', '7278', 'image/jpeg', 1, 1563528803, 1, 2),
+(72, '82dbe0434dea05ca0f0715f8d3cb35fd.jpg', '/uploads/store/comment/20190719\\82dbe0434dea05ca0f0715f8d3cb35fd.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_82dbe0434dea05ca0f0715f8d3cb35fd.jpg', '6172', 'image/jpeg', 1, 1563528858, 1, 2),
+(73, '72aaa441cea74e0a957607ba17cc0faa.jpg', '/uploads/store/comment/20190719\\72aaa441cea74e0a957607ba17cc0faa.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_72aaa441cea74e0a957607ba17cc0faa.jpg', '7278', 'image/jpeg', 1, 1563528863, 1, 2),
+(74, '211ced8d324833e549d373edc8ce6b43.jpg', '/uploads/store/comment/20190719\\211ced8d324833e549d373edc8ce6b43.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_211ced8d324833e549d373edc8ce6b43.jpg', '7278', 'image/jpeg', 1, 1563528867, 1, 2),
+(75, '6c7a06ecd120db937c7abd1faf3cc3cc.jpg', '/uploads/store/comment/20190719\\6c7a06ecd120db937c7abd1faf3cc3cc.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_6c7a06ecd120db937c7abd1faf3cc3cc.jpg', '6172', 'image/jpeg', 1, 1563528871, 1, 2),
+(76, '3129356b64b1a5f370797aa08691a5a3.jpg', '/uploads/store/comment/20190719\\3129356b64b1a5f370797aa08691a5a3.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_3129356b64b1a5f370797aa08691a5a3.jpg', '6172', 'image/jpeg', 1, 1563528875, 1, 2),
+(77, '8926036586719f259e17c571087b5da7.jpg', '/uploads/store/comment/20190719\\8926036586719f259e17c571087b5da7.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_8926036586719f259e17c571087b5da7.jpg', '6172', 'image/jpeg', 1, 1563528879, 1, 2),
+(78, '217743808cee281958bd9b611d82e296.jpg', '/uploads/store/comment/20190719\\217743808cee281958bd9b611d82e296.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_217743808cee281958bd9b611d82e296.jpg', '6172', 'image/jpeg', 1, 1563528883, 1, 2),
+(79, 'c211c2adf28fec4128fc042bdf717622.jpg', '/uploads/store/comment/20190719\\c211c2adf28fec4128fc042bdf717622.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_c211c2adf28fec4128fc042bdf717622.jpg', '6172', 'image/jpeg', 1, 1563528888, 1, 2),
+(80, '0a34a244b905d3f2c0fa6673494adc86.jpg', '/uploads/store/comment/20190719\\0a34a244b905d3f2c0fa6673494adc86.jpg', '\\I:\\tk_pr\\gitee\\crmeb\\v3.0\\public/uploads\\store/comment/20190719\\s_0a34a244b905d3f2c0fa6673494adc86.jpg', '6172', 'image/jpeg', 1, 1563528933, 1, 2),
+(84, '168_1_user_wap.jpg', '/uploads/qrcode/168_1_user_wap.jpg', '/uploads/qrcode/168_1_user_wap.jpg', '421', 'image/jpeg', 1, 1564016788, 1, 2),
+(85, 'b887d20190725090628451287.jpg', '/uploads/wap/spread/poster/b887d20190725090628451287.jpg', '/uploads/wap/spread/poster/b887d20190725090628451287.jpg', '83093', 'image/jpeg', 1, 1564016788, 1, 2),
+(86, '6e3ad20190725090628356976.jpg', '/uploads/wap/spread/poster/6e3ad20190725090628356976.jpg', '/uploads/wap/spread/poster/6e3ad20190725090628356976.jpg', '55451', 'image/jpeg', 1, 1564016788, 1, 2),
+(87, '585212019072509062889453.jpg', '/uploads/wap/spread/poster/585212019072509062889453.jpg', '/uploads/wap/spread/poster/585212019072509062889453.jpg', '76106', 'image/jpeg', 1, 1564016788, 1, 2),
+(88, '1354b20190725090803837532.jpg', '/uploads/wap/spread/poster/1354b20190725090803837532.jpg', '/uploads/wap/spread/poster/1354b20190725090803837532.jpg', '83093', 'image/jpeg', 1, 1564016883, 1, 2),
+(89, 'fc9e62019072509080377138.jpg', '/uploads/wap/spread/poster/fc9e62019072509080377138.jpg', '/uploads/wap/spread/poster/fc9e62019072509080377138.jpg', '55451', 'image/jpeg', 1, 1564016883, 1, 2),
+(90, '4fc7e20190725090803943808.jpg', '/uploads/wap/spread/poster/4fc7e20190725090803943808.jpg', '/uploads/wap/spread/poster/4fc7e20190725090803943808.jpg', '76106', 'image/jpeg', 1, 1564016883, 1, 2),
+(91, '9185f20190725090821497180.jpg', '/uploads/wap/spread/poster/9185f20190725090821497180.jpg', '/uploads/wap/spread/poster/9185f20190725090821497180.jpg', '83093', 'image/jpeg', 1, 1564016901, 1, 2),
+(92, '97ffc20190725090822518170.jpg', '/uploads/wap/spread/poster/97ffc20190725090822518170.jpg', '/uploads/wap/spread/poster/97ffc20190725090822518170.jpg', '55451', 'image/jpeg', 1, 1564016902, 1, 2),
+(93, '5eb2a20190725090822621288.jpg', '/uploads/wap/spread/poster/5eb2a20190725090822621288.jpg', '/uploads/wap/spread/poster/5eb2a20190725090822621288.jpg', '76106', 'image/jpeg', 1, 1564016902, 1, 2),
+(94, '5c81b6e9ffcb98526bec8d5cf60d00c0.jpeg', '/uploads/store/comment/20190725/5c81b6e9ffcb98526bec8d5cf60d00c0.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190725/s_5c81b6e9ffcb98526bec8d5cf60d00c0.jpeg', '100202', 'image/jpeg', 1, 1564017826, 1, 2),
+(95, '928598dc46edb4b3feb13996ca921c57.jpeg', '/uploads/store/comment/20190725/928598dc46edb4b3feb13996ca921c57.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190725/s_928598dc46edb4b3feb13996ca921c57.jpeg', '72063', 'image/jpeg', 1, 1564017936, 1, 2),
+(99, '06a5020190725103009603176.jpg', '/uploads/wap/spread/poster/06a5020190725103009603176.jpg', '/uploads/wap/spread/poster/06a5020190725103009603176.jpg', '83093', 'image/jpeg', 1, 1564021809, 1, 2),
+(100, '9bb6d20190725103009254090.jpg', '/uploads/wap/spread/poster/9bb6d20190725103009254090.jpg', '/uploads/wap/spread/poster/9bb6d20190725103009254090.jpg', '55451', 'image/jpeg', 1, 1564021809, 1, 2),
+(101, '0a3b620190725103009951704.jpg', '/uploads/wap/spread/poster/0a3b620190725103009951704.jpg', '/uploads/wap/spread/poster/0a3b620190725103009951704.jpg', '76106', 'image/jpeg', 1, 1564021809, 1, 2),
+(102, '16c2420190725103032875048.jpg', '/uploads/wap/spread/poster/16c2420190725103032875048.jpg', '/uploads/wap/spread/poster/16c2420190725103032875048.jpg', '83093', 'image/jpeg', 1, 1564021832, 1, 2),
+(103, '2288f20190725103033901964.jpg', '/uploads/wap/spread/poster/2288f20190725103033901964.jpg', '/uploads/wap/spread/poster/2288f20190725103033901964.jpg', '55451', 'image/jpeg', 1, 1564021833, 1, 2),
+(104, '209a320190725103035674032.jpg', '/uploads/wap/spread/poster/209a320190725103035674032.jpg', '/uploads/wap/spread/poster/209a320190725103035674032.jpg', '76106', 'image/jpeg', 1, 1564021835, 1, 2),
+(105, 'edfbe20190725103039704048.jpg', '/uploads/wap/spread/poster/edfbe20190725103039704048.jpg', '/uploads/wap/spread/poster/edfbe20190725103039704048.jpg', '83093', 'image/jpeg', 1, 1564021839, 1, 2),
+(106, 'd9ff920190725103039329861.jpg', '/uploads/wap/spread/poster/d9ff920190725103039329861.jpg', '/uploads/wap/spread/poster/d9ff920190725103039329861.jpg', '55451', 'image/jpeg', 1, 1564021839, 1, 2),
+(107, '2c60e20190725103040774523.jpg', '/uploads/wap/spread/poster/2c60e20190725103040774523.jpg', '/uploads/wap/spread/poster/2c60e20190725103040774523.jpg', '76106', 'image/jpeg', 1, 1564021840, 1, 2),
+(108, 'e355a20190725103044575205.jpg', '/uploads/wap/spread/poster/e355a20190725103044575205.jpg', '/uploads/wap/spread/poster/e355a20190725103044575205.jpg', '83093', 'image/jpeg', 1, 1564021844, 1, 2),
+(109, 'be74820190725103044442080.jpg', '/uploads/wap/spread/poster/be74820190725103044442080.jpg', '/uploads/wap/spread/poster/be74820190725103044442080.jpg', '55451', 'image/jpeg', 1, 1564021844, 1, 2),
+(110, '230e420190725103044422594.jpg', '/uploads/wap/spread/poster/230e420190725103044422594.jpg', '/uploads/wap/spread/poster/230e420190725103044422594.jpg', '76106', 'image/jpeg', 1, 1564021844, 1, 2),
+(111, '0967620190725103102348703.jpg', '/uploads/wap/spread/poster/0967620190725103102348703.jpg', '/uploads/wap/spread/poster/0967620190725103102348703.jpg', '83093', 'image/jpeg', 1, 1564021862, 1, 2),
+(112, '29c0c20190725103102815254.jpg', '/uploads/wap/spread/poster/29c0c20190725103102815254.jpg', '/uploads/wap/spread/poster/29c0c20190725103102815254.jpg', '55451', 'image/jpeg', 1, 1564021862, 1, 2),
+(113, '2cd4e201907251031023259.jpg', '/uploads/wap/spread/poster/2cd4e201907251031023259.jpg', '/uploads/wap/spread/poster/2cd4e201907251031023259.jpg', '76106', 'image/jpeg', 1, 1564021862, 1, 2),
+(114, '9683c20190725103106590255.jpg', '/uploads/wap/spread/poster/9683c20190725103106590255.jpg', '/uploads/wap/spread/poster/9683c20190725103106590255.jpg', '83093', 'image/jpeg', 1, 1564021866, 1, 2),
+(115, '34ed020190725103106490094.jpg', '/uploads/wap/spread/poster/34ed020190725103106490094.jpg', '/uploads/wap/spread/poster/34ed020190725103106490094.jpg', '55451', 'image/jpeg', 1, 1564021866, 1, 2),
+(116, 'c20a720190725103109723264.jpg', '/uploads/wap/spread/poster/c20a720190725103109723264.jpg', '/uploads/wap/spread/poster/c20a720190725103109723264.jpg', '76106', 'image/jpeg', 1, 1564021869, 1, 2),
+(117, '3eb6520190725103111358281.jpg', '/uploads/wap/spread/poster/3eb6520190725103111358281.jpg', '/uploads/wap/spread/poster/3eb6520190725103111358281.jpg', '83093', 'image/jpeg', 1, 1564021871, 1, 2),
+(118, 'eefc920190725103112724098.jpg', '/uploads/wap/spread/poster/eefc920190725103112724098.jpg', '/uploads/wap/spread/poster/eefc920190725103112724098.jpg', '55451', 'image/jpeg', 1, 1564021872, 1, 2),
+(119, '2c27a20190725103113931634.jpg', '/uploads/wap/spread/poster/2c27a20190725103113931634.jpg', '/uploads/wap/spread/poster/2c27a20190725103113931634.jpg', '76106', 'image/jpeg', 1, 1564021873, 1, 2),
+(120, 'cc8b620190725103115360579.jpg', '/uploads/wap/spread/poster/cc8b620190725103115360579.jpg', '/uploads/wap/spread/poster/cc8b620190725103115360579.jpg', '83093', 'image/jpeg', 1, 1564021875, 1, 2),
+(121, 'e48e120190725103115257436.jpg', '/uploads/wap/spread/poster/e48e120190725103115257436.jpg', '/uploads/wap/spread/poster/e48e120190725103115257436.jpg', '55451', 'image/jpeg', 1, 1564021875, 1, 2),
+(122, '846c220190725103115834202.jpg', '/uploads/wap/spread/poster/846c220190725103115834202.jpg', '/uploads/wap/spread/poster/846c220190725103115834202.jpg', '76106', 'image/jpeg', 1, 1564021875, 1, 2),
+(123, '2adaf20190725103118352406.jpg', '/uploads/wap/spread/poster/2adaf20190725103118352406.jpg', '/uploads/wap/spread/poster/2adaf20190725103118352406.jpg', '83093', 'image/jpeg', 1, 1564021878, 1, 2),
+(124, '9d94920190725103118285539.jpg', '/uploads/wap/spread/poster/9d94920190725103118285539.jpg', '/uploads/wap/spread/poster/9d94920190725103118285539.jpg', '55451', 'image/jpeg', 1, 1564021878, 1, 2),
+(125, '767b220190725103118406366.jpg', '/uploads/wap/spread/poster/767b220190725103118406366.jpg', '/uploads/wap/spread/poster/767b220190725103118406366.jpg', '76106', 'image/jpeg', 1, 1564021878, 1, 2),
+(126, 'bcc2b20190725103121323658.jpg', '/uploads/wap/spread/poster/bcc2b20190725103121323658.jpg', '/uploads/wap/spread/poster/bcc2b20190725103121323658.jpg', '83093', 'image/jpeg', 1, 1564021881, 1, 2),
+(127, '3d60020190725103121306997.jpg', '/uploads/wap/spread/poster/3d60020190725103121306997.jpg', '/uploads/wap/spread/poster/3d60020190725103121306997.jpg', '55451', 'image/jpeg', 1, 1564021881, 1, 2),
+(128, 'c678a20190725103121167568.jpg', '/uploads/wap/spread/poster/c678a20190725103121167568.jpg', '/uploads/wap/spread/poster/c678a20190725103121167568.jpg', '76106', 'image/jpeg', 1, 1564021881, 1, 2),
+(129, '2e6d920190725103124111367.jpg', '/uploads/wap/spread/poster/2e6d920190725103124111367.jpg', '/uploads/wap/spread/poster/2e6d920190725103124111367.jpg', '83093', 'image/jpeg', 1, 1564021884, 1, 2),
+(130, 'b810220190725103124980137.jpg', '/uploads/wap/spread/poster/b810220190725103124980137.jpg', '/uploads/wap/spread/poster/b810220190725103124980137.jpg', '55451', 'image/jpeg', 1, 1564021884, 1, 2),
+(131, 'c2ddc2019072510312443353.jpg', '/uploads/wap/spread/poster/c2ddc2019072510312443353.jpg', '/uploads/wap/spread/poster/c2ddc2019072510312443353.jpg', '76106', 'image/jpeg', 1, 1564021884, 1, 2),
+(132, 'd7aab20190725103125667273.jpg', '/uploads/wap/spread/poster/d7aab20190725103125667273.jpg', '/uploads/wap/spread/poster/d7aab20190725103125667273.jpg', '83093', 'image/jpeg', 1, 1564021885, 1, 2),
+(133, '4da0420190725103125862279.jpg', '/uploads/wap/spread/poster/4da0420190725103125862279.jpg', '/uploads/wap/spread/poster/4da0420190725103125862279.jpg', '55451', 'image/jpeg', 1, 1564021885, 1, 2),
+(134, '9c3b120190725103125550133.jpg', '/uploads/wap/spread/poster/9c3b120190725103125550133.jpg', '/uploads/wap/spread/poster/9c3b120190725103125550133.jpg', '76106', 'image/jpeg', 1, 1564021885, 1, 2),
+(135, 'd18f620190725103126976393.jpg', '/uploads/wap/spread/poster/d18f620190725103126976393.jpg', '/uploads/wap/spread/poster/d18f620190725103126976393.jpg', '83093', 'image/jpeg', 1, 1564021886, 1, 2),
+(136, 'a1a6020190725103126610529.jpg', '/uploads/wap/spread/poster/a1a6020190725103126610529.jpg', '/uploads/wap/spread/poster/a1a6020190725103126610529.jpg', '55451', 'image/jpeg', 1, 1564021886, 1, 2),
+(137, '7ae2620190725103126370491.jpg', '/uploads/wap/spread/poster/7ae2620190725103126370491.jpg', '/uploads/wap/spread/poster/7ae2620190725103126370491.jpg', '76106', 'image/jpeg', 1, 1564021886, 1, 2),
+(138, '8d6dc20190725103129563595.jpg', '/uploads/wap/spread/poster/8d6dc20190725103129563595.jpg', '/uploads/wap/spread/poster/8d6dc20190725103129563595.jpg', '83093', 'image/jpeg', 1, 1564021889, 1, 2),
+(139, '8207f20190725103129551352.jpg', '/uploads/wap/spread/poster/8207f20190725103129551352.jpg', '/uploads/wap/spread/poster/8207f20190725103129551352.jpg', '55451', 'image/jpeg', 1, 1564021889, 1, 2),
+(140, '93d6520190725103130932096.jpg', '/uploads/wap/spread/poster/93d6520190725103130932096.jpg', '/uploads/wap/spread/poster/93d6520190725103130932096.jpg', '76106', 'image/jpeg', 1, 1564021890, 1, 2),
+(141, '2f4cc20190725103133814588.jpg', '/uploads/wap/spread/poster/2f4cc20190725103133814588.jpg', '/uploads/wap/spread/poster/2f4cc20190725103133814588.jpg', '83093', 'image/jpeg', 1, 1564021893, 1, 2),
+(142, 'c696920190725103133223397.jpg', '/uploads/wap/spread/poster/c696920190725103133223397.jpg', '/uploads/wap/spread/poster/c696920190725103133223397.jpg', '55451', 'image/jpeg', 1, 1564021893, 1, 2),
+(143, 'd339a20190725103133521876.jpg', '/uploads/wap/spread/poster/d339a20190725103133521876.jpg', '/uploads/wap/spread/poster/d339a20190725103133521876.jpg', '76106', 'image/jpeg', 1, 1564021893, 1, 2),
+(144, 'a385d20190725103135259206.jpg', '/uploads/wap/spread/poster/a385d20190725103135259206.jpg', '/uploads/wap/spread/poster/a385d20190725103135259206.jpg', '83093', 'image/jpeg', 1, 1564021895, 1, 2),
+(145, '68d3020190725103135804087.jpg', '/uploads/wap/spread/poster/68d3020190725103135804087.jpg', '/uploads/wap/spread/poster/68d3020190725103135804087.jpg', '55451', 'image/jpeg', 1, 1564021895, 1, 2),
+(146, 'cdbc920190725103135555936.jpg', '/uploads/wap/spread/poster/cdbc920190725103135555936.jpg', '/uploads/wap/spread/poster/cdbc920190725103135555936.jpg', '76106', 'image/jpeg', 1, 1564021895, 1, 2),
+(147, '5073720190725103137154415.jpg', '/uploads/wap/spread/poster/5073720190725103137154415.jpg', '/uploads/wap/spread/poster/5073720190725103137154415.jpg', '83093', 'image/jpeg', 1, 1564021897, 1, 2),
+(148, 'c571620190725103137880402.jpg', '/uploads/wap/spread/poster/c571620190725103137880402.jpg', '/uploads/wap/spread/poster/c571620190725103137880402.jpg', '55451', 'image/jpeg', 1, 1564021897, 1, 2),
+(149, 'c92382019072510313799122.jpg', '/uploads/wap/spread/poster/c92382019072510313799122.jpg', '/uploads/wap/spread/poster/c92382019072510313799122.jpg', '76106', 'image/jpeg', 1, 1564021897, 1, 2),
+(150, '1e8a12019072510314087772.jpg', '/uploads/wap/spread/poster/1e8a12019072510314087772.jpg', '/uploads/wap/spread/poster/1e8a12019072510314087772.jpg', '83093', 'image/jpeg', 1, 1564021900, 1, 2),
+(151, '058d620190725103140182102.jpg', '/uploads/wap/spread/poster/058d620190725103140182102.jpg', '/uploads/wap/spread/poster/058d620190725103140182102.jpg', '55451', 'image/jpeg', 1, 1564021900, 1, 2),
+(152, '2adaf2019072510314070746.jpg', '/uploads/wap/spread/poster/2adaf2019072510314070746.jpg', '/uploads/wap/spread/poster/2adaf2019072510314070746.jpg', '76106', 'image/jpeg', 1, 1564021900, 1, 2),
+(153, '2f01878e82f58bc6c3688d480b4ff62f.png', '/uploads/attach/2019/07/25/20190725/2f01878e82f58bc6c3688d480b4ff62f.png', '//web/wwwroot/kaifa1.crmeb.net/public/uploads/attach/2019/07/25/20190725/s_2f01878e82f58bc6c3688d480b4ff62f.png', '2932', 'image/png', 27, 1564021944, 1, 1),
+(154, '2ae7e3d0027e077eb739752d759b039a.png', '/uploads/attach/2019/07/25/20190725/2ae7e3d0027e077eb739752d759b039a.png', '//web/wwwroot/kaifa1.crmeb.net/public/uploads/attach/2019/07/25/20190725/s_2ae7e3d0027e077eb739752d759b039a.png', '2932', 'image/png', 1, 1564040316, 1, 1),
+(155, 'cef5562c16589bde42744a071f8efc85.png', '/uploads/attach/2019/07/25/20190725/cef5562c16589bde42744a071f8efc85.png', '//web/wwwroot/kaifa1.crmeb.net/public/uploads/attach/2019/07/25/20190725/s_cef5562c16589bde42744a071f8efc85.png', '203044', 'image/png', 1, 1564040317, 1, 1),
+(156, '08c99f544853c964e6dc8822f76a5ac7.png', '/uploads/attach/2019/07/25/20190725/08c99f544853c964e6dc8822f76a5ac7.png', '//web/wwwroot/kaifa1.crmeb.net/public/uploads/attach/2019/07/25/20190725/s_08c99f544853c964e6dc8822f76a5ac7.png', '215271', 'image/png', 1, 1564040317, 1, 1),
+(162, 'f63f620190726145146576117.jpg', '/uploads/wap/spread/poster/f63f620190726145146576117.jpg', '/uploads/wap/spread/poster/f63f620190726145146576117.jpg', '83093', 'image/jpeg', 1, 1564123906, 1, 2),
+(163, '285da20190726145146173998.jpg', '/uploads/wap/spread/poster/285da20190726145146173998.jpg', '/uploads/wap/spread/poster/285da20190726145146173998.jpg', '55451', 'image/jpeg', 1, 1564123906, 1, 2),
+(164, '2f29b20190726145146899053.jpg', '/uploads/wap/spread/poster/2f29b20190726145146899053.jpg', '/uploads/wap/spread/poster/2f29b20190726145146899053.jpg', '76106', 'image/jpeg', 1, 1564123906, 1, 2),
+(165, 'fb48970129a9e8ed7ce5ea8531c0e801.jpeg', '/uploads/store/comment/20190726/fb48970129a9e8ed7ce5ea8531c0e801.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190726/s_fb48970129a9e8ed7ce5ea8531c0e801.jpeg', '16028', 'image/jpeg', 1, 1564124345, 1, 2),
+(166, 'b80e2722c2b3a20adce252e0bd3b1d5f.jpeg', '/uploads/store/comment/20190726/b80e2722c2b3a20adce252e0bd3b1d5f.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190726/s_b80e2722c2b3a20adce252e0bd3b1d5f.jpeg', '16028', 'image/jpeg', 1, 1564124356, 1, 2),
+(167, '25a53906cc1746c707a101b1ff84a364.png', '/uploads/attach/2019/07/26/20190726/25a53906cc1746c707a101b1ff84a364.png', '//Users/xurongyao/web/gitee/taobao/DTv3.0/public/uploads/attach/2019/07/26/20190726/s_25a53906cc1746c707a101b1ff84a364.png', '2932', 'image/png', 27, 1564126849, 1, 1),
+(169, 'fa73320190726215651473142.jpg', '/uploads/wap/spread/poster/fa73320190726215651473142.jpg', '/uploads/wap/spread/poster/fa73320190726215651473142.jpg', '83093', 'image/jpeg', 1, 1564149411, 1, 2),
+(170, 'cd81c20190726215651940809.jpg', '/uploads/wap/spread/poster/cd81c20190726215651940809.jpg', '/uploads/wap/spread/poster/cd81c20190726215651940809.jpg', '55451', 'image/jpeg', 1, 1564149411, 1, 2),
+(171, '9ef2e20190726215651491201.jpg', '/uploads/wap/spread/poster/9ef2e20190726215651491201.jpg', '/uploads/wap/spread/poster/9ef2e20190726215651491201.jpg', '76106', 'image/jpeg', 1, 1564149411, 1, 2),
+(172, '177_0_user_wap.jpg', '/uploads/qrcode/177_0_user_wap.jpg', '/uploads/qrcode/177_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564194059, 1, 2),
+(173, '2ead820190727102100533715.jpg', '/uploads/wap/spread/poster/2ead820190727102100533715.jpg', '/uploads/wap/spread/poster/2ead820190727102100533715.jpg', '83309', 'image/jpeg', 1, 1564194060, 1, 2),
+(174, 'b555f20190727102100477057.jpg', '/uploads/wap/spread/poster/b555f20190727102100477057.jpg', '/uploads/wap/spread/poster/b555f20190727102100477057.jpg', '55685', 'image/jpeg', 1, 1564194060, 1, 2),
+(175, '273f520190727102100246201.jpg', '/uploads/wap/spread/poster/273f520190727102100246201.jpg', '/uploads/wap/spread/poster/273f520190727102100246201.jpg', '76324', 'image/jpeg', 1, 1564194060, 1, 2),
+(176, '189_0_user_wap.jpg', '/uploads/qrcode/189_0_user_wap.jpg', '/uploads/qrcode/189_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564199087, 1, 2),
+(177, '1e9f62019072711444725565.jpg', '/uploads/wap/spread/poster/1e9f62019072711444725565.jpg', '/uploads/wap/spread/poster/1e9f62019072711444725565.jpg', '82072', 'image/jpeg', 1, 1564199087, 1, 2),
+(178, 'd1dc320190727114447940792.jpg', '/uploads/wap/spread/poster/d1dc320190727114447940792.jpg', '/uploads/wap/spread/poster/d1dc320190727114447940792.jpg', '54459', 'image/jpeg', 1, 1564199087, 1, 2),
+(179, 'd693d20190727114447975887.jpg', '/uploads/wap/spread/poster/d693d20190727114447975887.jpg', '/uploads/wap/spread/poster/d693d20190727114447975887.jpg', '75107', 'image/jpeg', 1, 1564199087, 1, 2),
+(180, '200_0_user_wap.jpg', '/uploads/qrcode/200_0_user_wap.jpg', '/uploads/qrcode/200_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564204071, 1, 2),
+(181, '961f120190727130751470142.jpg', '/uploads/wap/spread/poster/961f120190727130751470142.jpg', '/uploads/wap/spread/poster/961f120190727130751470142.jpg', '82978', 'image/jpeg', 1, 1564204071, 1, 2),
+(182, '0172d20190727130751944501.jpg', '/uploads/wap/spread/poster/0172d20190727130751944501.jpg', '/uploads/wap/spread/poster/0172d20190727130751944501.jpg', '55332', 'image/jpeg', 1, 1564204071, 1, 2),
+(183, 'cd7c2201907271307514953.jpg', '/uploads/wap/spread/poster/cd7c2201907271307514953.jpg', '/uploads/wap/spread/poster/cd7c2201907271307514953.jpg', '75989', 'image/jpeg', 1, 1564204071, 1, 2),
+(184, '201_0_user_wap.jpg', '/uploads/qrcode/201_0_user_wap.jpg', '/uploads/qrcode/201_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564204958, 1, 2),
+(185, 'c6e1920190727132238818099.jpg', '/uploads/wap/spread/poster/c6e1920190727132238818099.jpg', '/uploads/wap/spread/poster/c6e1920190727132238818099.jpg', '84470', 'image/jpeg', 1, 1564204958, 1, 2),
+(186, '24ac820190727132238790103.jpg', '/uploads/wap/spread/poster/24ac820190727132238790103.jpg', '/uploads/wap/spread/poster/24ac820190727132238790103.jpg', '56853', 'image/jpeg', 1, 1564204958, 1, 2),
+(187, '41a6f20190727132238588020.jpg', '/uploads/wap/spread/poster/41a6f20190727132238588020.jpg', '/uploads/wap/spread/poster/41a6f20190727132238588020.jpg', '77511', 'image/jpeg', 1, 1564204958, 1, 2),
+(188, '213_0_user_wap.jpg', '/uploads/qrcode/213_0_user_wap.jpg', '/uploads/qrcode/213_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564218643, 1, 2),
+(189, '810bf20190727171043430468.jpg', '/uploads/wap/spread/poster/810bf20190727171043430468.jpg', '/uploads/wap/spread/poster/810bf20190727171043430468.jpg', '82272', 'image/jpeg', 1, 1564218643, 1, 2),
+(190, 'eca3320190727171044353338.jpg', '/uploads/wap/spread/poster/eca3320190727171044353338.jpg', '/uploads/wap/spread/poster/eca3320190727171044353338.jpg', '54640', 'image/jpeg', 1, 1564218644, 1, 2),
+(191, '5d0d520190727171044866607.jpg', '/uploads/wap/spread/poster/5d0d520190727171044866607.jpg', '/uploads/wap/spread/poster/5d0d520190727171044866607.jpg', '75290', 'image/jpeg', 1, 1564218644, 1, 2),
+(192, '216_0_user_wap.jpg', '/uploads/qrcode/216_0_user_wap.jpg', '/uploads/qrcode/216_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564220495, 1, 2),
+(193, '4c12320190727174136790578.jpg', '/uploads/wap/spread/poster/4c12320190727174136790578.jpg', '/uploads/wap/spread/poster/4c12320190727174136790578.jpg', '82102', 'image/jpeg', 1, 1564220496, 1, 2),
+(194, '24b1620190727174136327219.jpg', '/uploads/wap/spread/poster/24b1620190727174136327219.jpg', '/uploads/wap/spread/poster/24b1620190727174136327219.jpg', '54478', 'image/jpeg', 1, 1564220496, 1, 2),
+(195, '48a7920190727174136512089.jpg', '/uploads/wap/spread/poster/48a7920190727174136512089.jpg', '/uploads/wap/spread/poster/48a7920190727174136512089.jpg', '75116', 'image/jpeg', 1, 1564220496, 1, 2),
+(196, '225_0_user_wap.jpg', '/uploads/qrcode/225_0_user_wap.jpg', '/uploads/qrcode/225_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564227377, 1, 2),
+(197, '3e9842019072719361747726.jpg', '/uploads/wap/spread/poster/3e9842019072719361747726.jpg', '/uploads/wap/spread/poster/3e9842019072719361747726.jpg', '83012', 'image/jpeg', 1, 1564227377, 1, 2),
+(198, '37ecd20190727193618557283.jpg', '/uploads/wap/spread/poster/37ecd20190727193618557283.jpg', '/uploads/wap/spread/poster/37ecd20190727193618557283.jpg', '55377', 'image/jpeg', 1, 1564227378, 1, 2),
+(199, 'f395720190727193618378539.jpg', '/uploads/wap/spread/poster/f395720190727193618378539.jpg', '/uploads/wap/spread/poster/f395720190727193618378539.jpg', '76025', 'image/jpeg', 1, 1564227378, 1, 2),
+(200, '09eb220190727201657241797.jpg', '/uploads/wap/spread/poster/09eb220190727201657241797.jpg', '/uploads/wap/spread/poster/09eb220190727201657241797.jpg', '82102', 'image/jpeg', 1, 1564229817, 1, 2),
+(201, '5cc3720190727201658664279.jpg', '/uploads/wap/spread/poster/5cc3720190727201658664279.jpg', '/uploads/wap/spread/poster/5cc3720190727201658664279.jpg', '54478', 'image/jpeg', 1, 1564229818, 1, 2),
+(202, '3210d20190727201658561359.jpg', '/uploads/wap/spread/poster/3210d20190727201658561359.jpg', '/uploads/wap/spread/poster/3210d20190727201658561359.jpg', '75116', 'image/jpeg', 1, 1564229818, 1, 2),
+(203, '3e4196a22c587d98a97545e23b7e9b96.jpeg', '/uploads/store/comment/20190727/3e4196a22c587d98a97545e23b7e9b96.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190727/s_3e4196a22c587d98a97545e23b7e9b96.jpeg', '56868', 'image/jpeg', 1, 1564236234, 1, 2),
+(204, '7c02220190727220836771494.jpg', '/uploads/wap/spread/poster/7c02220190727220836771494.jpg', '/uploads/wap/spread/poster/7c02220190727220836771494.jpg', '82102', 'image/jpeg', 1, 1564236516, 1, 2),
+(205, '1054020190727220837818070.jpg', '/uploads/wap/spread/poster/1054020190727220837818070.jpg', '/uploads/wap/spread/poster/1054020190727220837818070.jpg', '54478', 'image/jpeg', 1, 1564236517, 1, 2),
+(206, '5b69b2019072722083711108.jpg', '/uploads/wap/spread/poster/5b69b2019072722083711108.jpg', '/uploads/wap/spread/poster/5b69b2019072722083711108.jpg', '75116', 'image/jpeg', 1, 1564236517, 1, 2),
+(207, '564ac01c77211c432c7f314396cfdaaa.jpeg', '/uploads/store/comment/20190727/564ac01c77211c432c7f314396cfdaaa.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190727/s_564ac01c77211c432c7f314396cfdaaa.jpeg', '54749', 'image/jpeg', 1, 1564237187, 1, 2),
+(208, '1517c20190727222709296020.jpg', '/uploads/wap/spread/poster/1517c20190727222709296020.jpg', '/uploads/wap/spread/poster/1517c20190727222709296020.jpg', '83093', 'image/jpeg', 1, 1564237629, 1, 2),
+(209, '1340320190727222709958158.jpg', '/uploads/wap/spread/poster/1340320190727222709958158.jpg', '/uploads/wap/spread/poster/1340320190727222709958158.jpg', '55451', 'image/jpeg', 1, 1564237629, 1, 2),
+(210, 'f2b5e20190727222709759190.jpg', '/uploads/wap/spread/poster/f2b5e20190727222709759190.jpg', '/uploads/wap/spread/poster/f2b5e20190727222709759190.jpg', '76106', 'image/jpeg', 1, 1564237629, 1, 2),
+(211, 'c8fbb20190727222722745905.jpg', '/uploads/wap/spread/poster/c8fbb20190727222722745905.jpg', '/uploads/wap/spread/poster/c8fbb20190727222722745905.jpg', '83093', 'image/jpeg', 1, 1564237642, 1, 2),
+(212, '45e8120190727222722944820.jpg', '/uploads/wap/spread/poster/45e8120190727222722944820.jpg', '/uploads/wap/spread/poster/45e8120190727222722944820.jpg', '55451', 'image/jpeg', 1, 1564237642, 1, 2),
+(213, '7895f2019072722272219051.jpg', '/uploads/wap/spread/poster/7895f2019072722272219051.jpg', '/uploads/wap/spread/poster/7895f2019072722272219051.jpg', '76106', 'image/jpeg', 1, 1564237642, 1, 2),
+(214, 'a09265a70ba58d27410ffa85e341d073.jpg', '/uploads/store/comment/20190727/a09265a70ba58d27410ffa85e341d073.jpg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190727/s_a09265a70ba58d27410ffa85e341d073.jpg', '395313', 'image/jpeg', 1, 1564238100, 1, 2),
+(215, '7cdb4c9d08adacf5821cfb7352fefa4b.jpeg', '/uploads/store/comment/20190727/7cdb4c9d08adacf5821cfb7352fefa4b.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190727/s_7cdb4c9d08adacf5821cfb7352fefa4b.jpeg', '60094', 'image/jpeg', 1, 1564238125, 1, 2),
+(216, '0576cebf516bb522a09f418cb274eb4c.jpeg', '/uploads/store/comment/20190727/0576cebf516bb522a09f418cb274eb4c.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190727/s_0576cebf516bb522a09f418cb274eb4c.jpeg', '79176', 'image/jpeg', 1, 1564238160, 1, 2),
+(217, 'cb9e20560a1b43ca0169533a6b44bbd2.png', '/uploads/store/comment/20190727/cb9e20560a1b43ca0169533a6b44bbd2.png', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190727/s_cb9e20560a1b43ca0169533a6b44bbd2.png', '1190154', 'image/png', 1, 1564238208, 1, 2),
+(218, 'cf74474c19c2b0f9d7c5cafce28c07ba.jpeg', '/uploads/store/comment/20190727/cf74474c19c2b0f9d7c5cafce28c07ba.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190727/s_cf74474c19c2b0f9d7c5cafce28c07ba.jpeg', '102985', 'image/jpeg', 1, 1564238251, 1, 2),
+(219, '398dc479ad9c9d5c897d0d20d3b4f821.jpeg', '/uploads/store/comment/20190727/398dc479ad9c9d5c897d0d20d3b4f821.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190727/s_398dc479ad9c9d5c897d0d20d3b4f821.jpeg', '60094', 'image/jpeg', 1, 1564238258, 1, 2),
+(220, '23294c4ff25358904525b410efab6ab2.jpg', '/uploads/store/comment/20190727/23294c4ff25358904525b410efab6ab2.jpg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190727/s_23294c4ff25358904525b410efab6ab2.jpg', '329700', 'image/jpeg', 1, 1564238272, 1, 2),
+(221, 'b71e0aea2413139abb3d98f73868198c.jpeg', '/uploads/store/comment/20190727/b71e0aea2413139abb3d98f73868198c.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190727/s_b71e0aea2413139abb3d98f73868198c.jpeg', '404614', 'image/jpeg', 1, 1564238315, 1, 2),
+(222, '4796e8852edba27fd1932ca4f8eb1930.jpg', '/uploads/store/comment/20190727/4796e8852edba27fd1932ca4f8eb1930.jpg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190727/s_4796e8852edba27fd1932ca4f8eb1930.jpg', '448829', 'image/jpeg', 1, 1564238535, 1, 2),
+(223, '244_0_user_wap.jpg', '/uploads/qrcode/244_0_user_wap.jpg', '/uploads/qrcode/244_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564242085, 1, 2),
+(224, 'acc3e201907272341258018.jpg', '/uploads/wap/spread/poster/acc3e201907272341258018.jpg', '/uploads/wap/spread/poster/acc3e201907272341258018.jpg', '82062', 'image/jpeg', 1, 1564242085, 1, 2),
+(225, 'fd4f220190727234126701352.jpg', '/uploads/wap/spread/poster/fd4f220190727234126701352.jpg', '/uploads/wap/spread/poster/fd4f220190727234126701352.jpg', '54419', 'image/jpeg', 1, 1564242086, 1, 2),
+(226, 'eb86d20190727234126141312.jpg', '/uploads/wap/spread/poster/eb86d20190727234126141312.jpg', '/uploads/wap/spread/poster/eb86d20190727234126141312.jpg', '75071', 'image/jpeg', 1, 1564242086, 1, 2),
+(227, '246_0_user_wap.jpg', '/uploads/qrcode/246_0_user_wap.jpg', '/uploads/qrcode/246_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564243483, 1, 2),
+(228, '5fa5a20190728000443278752.jpg', '/uploads/wap/spread/poster/5fa5a20190728000443278752.jpg', '/uploads/wap/spread/poster/5fa5a20190728000443278752.jpg', '83136', 'image/jpeg', 1, 1564243483, 1, 2),
+(229, '0ef0320190728000443301158.jpg', '/uploads/wap/spread/poster/0ef0320190728000443301158.jpg', '/uploads/wap/spread/poster/0ef0320190728000443301158.jpg', '55503', 'image/jpeg', 1, 1564243483, 1, 2),
+(230, '1a32d20190728000443689441.jpg', '/uploads/wap/spread/poster/1a32d20190728000443689441.jpg', '/uploads/wap/spread/poster/1a32d20190728000443689441.jpg', '76163', 'image/jpeg', 1, 1564243483, 1, 2),
+(231, '247_0_user_wap.jpg', '/uploads/qrcode/247_0_user_wap.jpg', '/uploads/qrcode/247_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564246280, 1, 2),
+(232, '977852019072800512088894.jpg', '/uploads/wap/spread/poster/977852019072800512088894.jpg', '/uploads/wap/spread/poster/977852019072800512088894.jpg', '82146', 'image/jpeg', 1, 1564246280, 1, 2),
+(233, 'b73df2019072800512091536.jpg', '/uploads/wap/spread/poster/b73df2019072800512091536.jpg', '/uploads/wap/spread/poster/b73df2019072800512091536.jpg', '54530', 'image/jpeg', 1, 1564246280, 1, 2),
+(234, '1e8c320190728005120601998.jpg', '/uploads/wap/spread/poster/1e8c320190728005120601998.jpg', '/uploads/wap/spread/poster/1e8c320190728005120601998.jpg', '75164', 'image/jpeg', 1, 1564246280, 1, 2),
+(235, 'f8d2e20190728005414808393.jpg', '/uploads/wap/spread/poster/f8d2e20190728005414808393.jpg', '/uploads/wap/spread/poster/f8d2e20190728005414808393.jpg', '82146', 'image/jpeg', 1, 1564246454, 1, 2),
+(236, '5d15120190728005414129183.jpg', '/uploads/wap/spread/poster/5d15120190728005414129183.jpg', '/uploads/wap/spread/poster/5d15120190728005414129183.jpg', '54530', 'image/jpeg', 1, 1564246454, 1, 2),
+(237, '4082620190728005414162573.jpg', '/uploads/wap/spread/poster/4082620190728005414162573.jpg', '/uploads/wap/spread/poster/4082620190728005414162573.jpg', '75164', 'image/jpeg', 1, 1564246454, 1, 2),
+(238, '40795cee20f67a4e80591523a8100925.jpg', '/uploads/store/comment/20190728/40795cee20f67a4e80591523a8100925.jpg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190728/s_40795cee20f67a4e80591523a8100925.jpg', '530568', 'image/jpeg', 1, 1564271957, 1, 2),
+(239, '3de43e99887a2f6d6326b5cae44be6aa.png', '/uploads/store/comment/20190728/3de43e99887a2f6d6326b5cae44be6aa.png', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190728/s_3de43e99887a2f6d6326b5cae44be6aa.png', '445628', 'image/png', 1, 1564272443, 1, 2),
+(240, '68764296da451aebbdc5e3c54afdb185.jpg', '/uploads/store/comment/20190728/68764296da451aebbdc5e3c54afdb185.jpg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190728/s_68764296da451aebbdc5e3c54afdb185.jpg', '490444', 'image/jpeg', 1, 1564272452, 1, 2),
+(241, '04c7ef680604f69f54cd95873c5db243.jpeg', '/uploads/store/comment/20190728/04c7ef680604f69f54cd95873c5db243.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190728/s_04c7ef680604f69f54cd95873c5db243.jpeg', '772453', 'image/jpeg', 1, 1564272471, 1, 2),
+(242, 'a75cef3d665f7e9ad1255c1019cc7625.png', '/uploads/store/comment/20190728/a75cef3d665f7e9ad1255c1019cc7625.png', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190728/s_a75cef3d665f7e9ad1255c1019cc7625.png', '321666', 'image/png', 1, 1564273400, 1, 2),
+(243, '264_0_user_wap.jpg', '/uploads/qrcode/264_0_user_wap.jpg', '/uploads/qrcode/264_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564292696, 1, 2),
+(244, '37d7920190728134456438274.jpg', '/uploads/wap/spread/poster/37d7920190728134456438274.jpg', '/uploads/wap/spread/poster/37d7920190728134456438274.jpg', '82208', 'image/jpeg', 1, 1564292696, 1, 2),
+(245, 'e928720190728134456574790.jpg', '/uploads/wap/spread/poster/e928720190728134456574790.jpg', '/uploads/wap/spread/poster/e928720190728134456574790.jpg', '54594', 'image/jpeg', 1, 1564292696, 1, 2),
+(246, '23e5820190728134456670292.jpg', '/uploads/wap/spread/poster/23e5820190728134456670292.jpg', '/uploads/wap/spread/poster/23e5820190728134456670292.jpg', '75232', 'image/jpeg', 1, 1564292696, 1, 2),
+(247, '279_0_user_wap.jpg', '/uploads/qrcode/279_0_user_wap.jpg', '/uploads/qrcode/279_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564306461, 1, 2),
+(248, '32bd420190728173421315131.jpg', '/uploads/wap/spread/poster/32bd420190728173421315131.jpg', '/uploads/wap/spread/poster/32bd420190728173421315131.jpg', '82291', 'image/jpeg', 1, 1564306461, 1, 2),
+(249, '3a07720190728173421634603.jpg', '/uploads/wap/spread/poster/3a07720190728173421634603.jpg', '/uploads/wap/spread/poster/3a07720190728173421634603.jpg', '54674', 'image/jpeg', 1, 1564306461, 1, 2),
+(250, 'dbec02019072817342187907.jpg', '/uploads/wap/spread/poster/dbec02019072817342187907.jpg', '/uploads/wap/spread/poster/dbec02019072817342187907.jpg', '75328', 'image/jpeg', 1, 1564306461, 1, 2),
+(251, '287_0_user_wap.jpg', '/uploads/qrcode/287_0_user_wap.jpg', '/uploads/qrcode/287_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564324263, 1, 2),
+(252, '3eae620190728223103166972.jpg', '/uploads/wap/spread/poster/3eae620190728223103166972.jpg', '/uploads/wap/spread/poster/3eae620190728223103166972.jpg', '82489', 'image/jpeg', 1, 1564324263, 1, 2),
+(253, '1f44720190728223103173215.jpg', '/uploads/wap/spread/poster/1f44720190728223103173215.jpg', '/uploads/wap/spread/poster/1f44720190728223103173215.jpg', '54845', 'image/jpeg', 1, 1564324263, 1, 2);
+INSERT INTO `eb_system_attachment` (`att_id`, `name`, `att_dir`, `satt_dir`, `att_size`, `att_type`, `pid`, `time`, `image_type`, `module_type`) VALUES
+(254, '6ebb620190728223104696739.jpg', '/uploads/wap/spread/poster/6ebb620190728223104696739.jpg', '/uploads/wap/spread/poster/6ebb620190728223104696739.jpg', '75512', 'image/jpeg', 1, 1564324264, 1, 2),
+(255, 'ff14120190728232201368421.jpg', '/uploads/wap/spread/poster/ff14120190728232201368421.jpg', '/uploads/wap/spread/poster/ff14120190728232201368421.jpg', '82489', 'image/jpeg', 1, 1564327321, 1, 2),
+(256, '6c8db20190728232201618359.jpg', '/uploads/wap/spread/poster/6c8db20190728232201618359.jpg', '/uploads/wap/spread/poster/6c8db20190728232201618359.jpg', '54845', 'image/jpeg', 1, 1564327321, 1, 2),
+(257, '32f6c20190728232202370019.jpg', '/uploads/wap/spread/poster/32f6c20190728232202370019.jpg', '/uploads/wap/spread/poster/32f6c20190728232202370019.jpg', '75512', 'image/jpeg', 1, 1564327322, 1, 2),
+(258, '205_0_user_wap.jpg', '/uploads/qrcode/205_0_user_wap.jpg', '/uploads/qrcode/205_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564327947, 1, 2),
+(259, 'f516d20190728233227366269.jpg', '/uploads/wap/spread/poster/f516d20190728233227366269.jpg', '/uploads/wap/spread/poster/f516d20190728233227366269.jpg', '81800', 'image/jpeg', 1, 1564327947, 1, 2),
+(260, 'e924520190728233227319247.jpg', '/uploads/wap/spread/poster/e924520190728233227319247.jpg', '/uploads/wap/spread/poster/e924520190728233227319247.jpg', '54182', 'image/jpeg', 1, 1564327947, 1, 2),
+(261, '4edaa20190728233227849878.jpg', '/uploads/wap/spread/poster/4edaa20190728233227849878.jpg', '/uploads/wap/spread/poster/4edaa20190728233227849878.jpg', '74811', 'image/jpeg', 1, 1564327947, 1, 2),
+(262, '894db20190728233525187998.jpg', '/uploads/wap/spread/poster/894db20190728233525187998.jpg', '/uploads/wap/spread/poster/894db20190728233525187998.jpg', '81800', 'image/jpeg', 1, 1564328125, 1, 2),
+(263, '50abc20190728233525277763.jpg', '/uploads/wap/spread/poster/50abc20190728233525277763.jpg', '/uploads/wap/spread/poster/50abc20190728233525277763.jpg', '54182', 'image/jpeg', 1, 1564328125, 1, 2),
+(264, '442cd20190728233526676459.jpg', '/uploads/wap/spread/poster/442cd20190728233526676459.jpg', '/uploads/wap/spread/poster/442cd20190728233526676459.jpg', '74811', 'image/jpeg', 1, 1564328126, 1, 2),
+(265, '294_0_user_wap.jpg', '/uploads/qrcode/294_0_user_wap.jpg', '/uploads/qrcode/294_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564339023, 1, 2),
+(266, '21be92019072902370415484.jpg', '/uploads/wap/spread/poster/21be92019072902370415484.jpg', '/uploads/wap/spread/poster/21be92019072902370415484.jpg', '83179', 'image/jpeg', 1, 1564339024, 1, 2),
+(267, 'e2eab20190729023704914230.jpg', '/uploads/wap/spread/poster/e2eab20190729023704914230.jpg', '/uploads/wap/spread/poster/e2eab20190729023704914230.jpg', '55539', 'image/jpeg', 1, 1564339024, 1, 2),
+(268, '6150c20190729023704106732.jpg', '/uploads/wap/spread/poster/6150c20190729023704106732.jpg', '/uploads/wap/spread/poster/6150c20190729023704106732.jpg', '76190', 'image/jpeg', 1, 1564339024, 1, 2),
+(269, '314_0_user_wap.jpg', '/uploads/qrcode/314_0_user_wap.jpg', '/uploads/qrcode/314_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564371730, 1, 2),
+(270, '73f1220190729114211764053.jpg', '/uploads/wap/spread/poster/73f1220190729114211764053.jpg', '/uploads/wap/spread/poster/73f1220190729114211764053.jpg', '82294', 'image/jpeg', 1, 1564371731, 1, 2),
+(271, 'b19aa20190729114211524438.jpg', '/uploads/wap/spread/poster/b19aa20190729114211524438.jpg', '/uploads/wap/spread/poster/b19aa20190729114211524438.jpg', '54662', 'image/jpeg', 1, 1564371731, 1, 2),
+(272, '475cc20190729114211191252.jpg', '/uploads/wap/spread/poster/475cc20190729114211191252.jpg', '/uploads/wap/spread/poster/475cc20190729114211191252.jpg', '75318', 'image/jpeg', 1, 1564371731, 1, 2),
+(273, '106cf7d2473a65caea57d4400db2293b.png', '/uploads/attach/2019/07/29/20190729/106cf7d2473a65caea57d4400db2293b.png', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/attach/2019/07/29/20190729/s_106cf7d2473a65caea57d4400db2293b.png', '2932', 'image/png', 26, 1564394584, 1, 1),
+(274, 'd73aa4b4f1add2f22698e7e9aa75d25c.gif', '/uploads/Users/xurongyao/web/gitee/taobao/DTv3.0/app/admin//attach/2019/07/20190729/d73aa4b4f1add2f22698e7e9aa75d25c.gif', '//Users/xurongyao/web/gitee/taobao/DTv3.0/public/uploads/Users/xurongyao/web/gitee/taobao/DTv3.0/app/admin//attach/2019/07/20190729/s_d73aa4b4f1add2f22698e7e9aa75d25c.gif', '132546', 'image/gif', 26, 1564394873, 1, 1),
+(275, '04fc4307e1668868b4e54a8f970621c2.png', '/uploads/attach/2019/07/29/20190729/04fc4307e1668868b4e54a8f970621c2.png', '//Users/xurongyao/web/gitee/taobao/DTv3.0/public/uploads/attach/2019/07/29/20190729/s_04fc4307e1668868b4e54a8f970621c2.png', '2932', 'image/png', 26, 1564394958, 1, 1),
+(276, 'b707bf9713d6c89d9200a9353d2d7cf9.gif', '/uploads/attach/2019/07/20190729/b707bf9713d6c89d9200a9353d2d7cf9.gif', '//Users/xurongyao/web/gitee/taobao/DTv3.0/public/uploads/attach/2019/07/20190729/s_b707bf9713d6c89d9200a9353d2d7cf9.gif', '132546', 'image/gif', 26, 1564395021, 1, 1),
+(277, 'f99bbe0a729a7f795180c0b9ba380347.gif', '/uploads/attach/2019/07/20190729/f99bbe0a729a7f795180c0b9ba380347.gif', '//Users/xurongyao/web/gitee/taobao/DTv3.0/public/uploads/attach/2019/07/20190729/s_f99bbe0a729a7f795180c0b9ba380347.gif', '164200', 'image/gif', 26, 1564395547, 1, 1),
+(278, '352_0_user_wap.jpg', '/uploads/qrcode/352_0_user_wap.jpg', '/uploads/qrcode/352_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564397815, 1, 2),
+(279, 'd91ca20190729185656918616.jpg', '/uploads/wap/spread/poster/d91ca20190729185656918616.jpg', '/uploads/wap/spread/poster/d91ca20190729185656918616.jpg', '81833', 'image/jpeg', 1, 1564397816, 1, 2),
+(280, '80f2f20190729185656885349.jpg', '/uploads/wap/spread/poster/80f2f20190729185656885349.jpg', '/uploads/wap/spread/poster/80f2f20190729185656885349.jpg', '54212', 'image/jpeg', 1, 1564397816, 1, 2),
+(281, 'e92e120190729185656984253.jpg', '/uploads/wap/spread/poster/e92e120190729185656984253.jpg', '/uploads/wap/spread/poster/e92e120190729185656984253.jpg', '74860', 'image/jpeg', 1, 1564397816, 1, 2),
+(282, '94e7020190729185703860551.jpg', '/uploads/wap/spread/poster/94e7020190729185703860551.jpg', '/uploads/wap/spread/poster/94e7020190729185703860551.jpg', '81833', 'image/jpeg', 1, 1564397823, 1, 2),
+(283, '88bfc20190729185703924079.jpg', '/uploads/wap/spread/poster/88bfc20190729185703924079.jpg', '/uploads/wap/spread/poster/88bfc20190729185703924079.jpg', '54212', 'image/jpeg', 1, 1564397824, 1, 2),
+(284, 'ab24c20190729185704604459.jpg', '/uploads/wap/spread/poster/ab24c20190729185704604459.jpg', '/uploads/wap/spread/poster/ab24c20190729185704604459.jpg', '74860', 'image/jpeg', 1, 1564397824, 1, 2),
+(285, '9741620190729211128463392.jpg', '/uploads/wap/spread/poster/9741620190729211128463392.jpg', '/uploads/wap/spread/poster/9741620190729211128463392.jpg', '82978', 'image/jpeg', 1, 1564405888, 1, 2),
+(286, '3ae4f20190729211128320428.jpg', '/uploads/wap/spread/poster/3ae4f20190729211128320428.jpg', '/uploads/wap/spread/poster/3ae4f20190729211128320428.jpg', '55332', 'image/jpeg', 1, 1564405888, 1, 2),
+(287, '959a520190729211128507631.jpg', '/uploads/wap/spread/poster/959a520190729211128507631.jpg', '/uploads/wap/spread/poster/959a520190729211128507631.jpg', '75989', 'image/jpeg', 1, 1564405888, 1, 2),
+(288, '6852120190729211132619955.jpg', '/uploads/wap/spread/poster/6852120190729211132619955.jpg', '/uploads/wap/spread/poster/6852120190729211132619955.jpg', '82978', 'image/jpeg', 1, 1564405892, 1, 2),
+(289, 'f52db20190729211132743628.jpg', '/uploads/wap/spread/poster/f52db20190729211132743628.jpg', '/uploads/wap/spread/poster/f52db20190729211132743628.jpg', '55332', 'image/jpeg', 1, 1564405892, 1, 2),
+(290, '88fcf20190729211132682614.jpg', '/uploads/wap/spread/poster/88fcf20190729211132682614.jpg', '/uploads/wap/spread/poster/88fcf20190729211132682614.jpg', '75989', 'image/jpeg', 1, 1564405892, 1, 2),
+(291, '371_0_user_wap.jpg', '/uploads/qrcode/371_0_user_wap.jpg', '/uploads/qrcode/371_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564449555, 1, 2),
+(292, '9a83e20190730091915509816.jpg', '/uploads/wap/spread/poster/9a83e20190730091915509816.jpg', '/uploads/wap/spread/poster/9a83e20190730091915509816.jpg', '82122', 'image/jpeg', 1, 1564449555, 1, 2),
+(293, 'b0da920190730091915740518.jpg', '/uploads/wap/spread/poster/b0da920190730091915740518.jpg', '/uploads/wap/spread/poster/b0da920190730091915740518.jpg', '54486', 'image/jpeg', 1, 1564449555, 1, 2),
+(294, 'd3a0320190730091915104142.jpg', '/uploads/wap/spread/poster/d3a0320190730091915104142.jpg', '/uploads/wap/spread/poster/d3a0320190730091915104142.jpg', '75147', 'image/jpeg', 1, 1564449555, 1, 2),
+(295, 'ff3f3882ddf869802b5aff952a8f3c1a.jpeg', '/uploads/store/comment/20190730/ff3f3882ddf869802b5aff952a8f3c1a.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190730/s_ff3f3882ddf869802b5aff952a8f3c1a.jpeg', '47685', 'image/jpeg', 1, 1564468139, 1, 2),
+(296, '6325dabdb6dbc5fbbcea9cd010e40234.jpeg', '/uploads/store/comment/20190730/6325dabdb6dbc5fbbcea9cd010e40234.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190730/s_6325dabdb6dbc5fbbcea9cd010e40234.jpeg', '34796', 'image/jpeg', 1, 1564468175, 1, 2),
+(297, '933118f15adcb81397f41d221811a33d.png', '/uploads/store/comment/20190730/933118f15adcb81397f41d221811a33d.png', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190730/s_933118f15adcb81397f41d221811a33d.png', '2531', 'image/png', 1, 1564468746, 1, 2),
+(298, 'c5ad720190730150450233974.jpg', '/uploads/wap/spread/poster/c5ad720190730150450233974.jpg', '/uploads/wap/spread/poster/c5ad720190730150450233974.jpg', '83037', 'image/jpeg', 1, 1564470290, 1, 2),
+(299, '72f6720190730150450892545.jpg', '/uploads/wap/spread/poster/72f6720190730150450892545.jpg', '/uploads/wap/spread/poster/72f6720190730150450892545.jpg', '55417', 'image/jpeg', 1, 1564470290, 1, 2),
+(300, '23ce120190730150450992758.jpg', '/uploads/wap/spread/poster/23ce120190730150450992758.jpg', '/uploads/wap/spread/poster/23ce120190730150450992758.jpg', '76071', 'image/jpeg', 1, 1564470290, 1, 2),
+(301, '705f220190730150503481328.jpg', '/uploads/wap/spread/poster/705f220190730150503481328.jpg', '/uploads/wap/spread/poster/705f220190730150503481328.jpg', '83037', 'image/jpeg', 1, 1564470303, 1, 2),
+(302, 'ec20020190730150503417174.jpg', '/uploads/wap/spread/poster/ec20020190730150503417174.jpg', '/uploads/wap/spread/poster/ec20020190730150503417174.jpg', '55417', 'image/jpeg', 1, 1564470303, 1, 2),
+(303, '257de20190730150503671162.jpg', '/uploads/wap/spread/poster/257de20190730150503671162.jpg', '/uploads/wap/spread/poster/257de20190730150503671162.jpg', '76071', 'image/jpeg', 1, 1564470303, 1, 2),
+(304, '8caa320190730150506802564.jpg', '/uploads/wap/spread/poster/8caa320190730150506802564.jpg', '/uploads/wap/spread/poster/8caa320190730150506802564.jpg', '83037', 'image/jpeg', 1, 1564470306, 1, 2),
+(305, '48c002019073015050658568.jpg', '/uploads/wap/spread/poster/48c002019073015050658568.jpg', '/uploads/wap/spread/poster/48c002019073015050658568.jpg', '55417', 'image/jpeg', 1, 1564470306, 1, 2),
+(306, '96bea20190730150506801451.jpg', '/uploads/wap/spread/poster/96bea20190730150506801451.jpg', '/uploads/wap/spread/poster/96bea20190730150506801451.jpg', '76071', 'image/jpeg', 1, 1564470306, 1, 2),
+(307, '2_product_detail_wap.jpg', '/uploads/qrcode/2_product_detail_wap.jpg', '/uploads/qrcode/2_product_detail_wap.jpg', '510', 'image/jpeg', 1, 1564470318, 1, 2),
+(308, '3_product_detail_wap.jpg', '/uploads/qrcode/3_product_detail_wap.jpg', '/uploads/qrcode/3_product_detail_wap.jpg', '515', 'image/jpeg', 1, 1564470340, 1, 2),
+(309, '5_product_detail_wap.jpg', '/uploads/qrcode/5_product_detail_wap.jpg', '/uploads/qrcode/5_product_detail_wap.jpg', '509', 'image/jpeg', 1, 1564470506, 1, 2),
+(310, '13_product_detail_wap.jpg', '/uploads/qrcode/13_product_detail_wap.jpg', '/uploads/qrcode/13_product_detail_wap.jpg', '507', 'image/jpeg', 1, 1564470717, 1, 2),
+(311, '13_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/13_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/13_product_detail_168_is_promoter_1.wap.jpg', '600', 'image/jpeg', 1, 1564470719, 1, 2),
+(312, 'd9825854de8e1955645b36c2d22a2a2f.jpg', '/uploads/attach/2019/07/20190730/d9825854de8e1955645b36c2d22a2a2f.jpg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/attach/2019/07/20190730/s_d9825854de8e1955645b36c2d22a2a2f.jpg', '48755', 'image/jpeg', 28, 1564470906, 1, 1),
+(335, '13_seckill_detail_wap.jpg', '/uploads/qrcode/13_seckill_detail_wap.jpg', '/uploads/qrcode/13_seckill_detail_wap.jpg', '695', 'image/jpeg', 1, 1564471303, 1, 2),
+(336, '69eb5f09f947ff53244a57d5c021b817.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/69eb5f09f947ff53244a57d5c021b817.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/69eb5f09f947ff53244a57d5c021b817.jpg', '377824', 'image/jpeg', 9, 1564471315, 1, 1),
+(337, '69eb5f09f947ff53244a57d5c021b817.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/69eb5f09f947ff53244a57d5c021b817.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/69eb5f09f947ff53244a57d5c021b817.jpg', '377824', 'image/jpeg', 9, 1564471315, 1, 1),
+(338, 'ce0a2ed478552ca0bfc7092f337c8d10.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/ce0a2ed478552ca0bfc7092f337c8d10.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/ce0a2ed478552ca0bfc7092f337c8d10.jpg', '196474', 'image/jpeg', 9, 1564471315, 1, 1),
+(339, '13efc762f7fdfec35ad2eeedc541db4b.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/13efc762f7fdfec35ad2eeedc541db4b.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/13efc762f7fdfec35ad2eeedc541db4b.jpg', '196646', 'image/jpeg', 9, 1564471315, 1, 1),
+(340, '4d280506de9f99621d6c9257abb00002.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/4d280506de9f99621d6c9257abb00002.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/4d280506de9f99621d6c9257abb00002.jpg', '166156', 'image/jpeg', 9, 1564471315, 1, 1),
+(341, 'b07e8708977de9c820d7d97958776f8d.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/b07e8708977de9c820d7d97958776f8d.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/b07e8708977de9c820d7d97958776f8d.jpg', '238765', 'image/jpeg', 9, 1564471316, 1, 1),
+(342, '60a1b15d3a76d624e8fe4f29d6405329.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/60a1b15d3a76d624e8fe4f29d6405329.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/60a1b15d3a76d624e8fe4f29d6405329.jpg', '235698', 'image/jpeg', 9, 1564471316, 1, 1),
+(343, '4d756807800de48cf64515abde691858.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/4d756807800de48cf64515abde691858.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/4d756807800de48cf64515abde691858.jpg', '208245', 'image/jpeg', 9, 1564471316, 1, 1),
+(344, '6eb36373e34467b616caf8ebd628b8a9.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/6eb36373e34467b616caf8ebd628b8a9.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/6eb36373e34467b616caf8ebd628b8a9.jpg', '68136', 'image/jpeg', 9, 1564471316, 1, 1),
+(345, '9fd1c33715375d14a910dc6ac16a1f01.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/9fd1c33715375d14a910dc6ac16a1f01.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/9fd1c33715375d14a910dc6ac16a1f01.jpg', '234315', 'image/jpeg', 9, 1564471316, 1, 1),
+(346, 'cf82af05b3627661f7311b437fd4ef75.png', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/cf82af05b3627661f7311b437fd4ef75.png', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/cf82af05b3627661f7311b437fd4ef75.png', '724918', 'image/png', 9, 1564471317, 1, 1),
+(347, '6a199d8d05c1ade1d9d9d430af0c2135.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/6a199d8d05c1ade1d9d9d430af0c2135.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/6a199d8d05c1ade1d9d9d430af0c2135.jpg', '368263', 'image/jpeg', 9, 1564471317, 1, 1),
+(348, 'ba7b6671f1ab84b7d1ff9f7ae483db97.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/ba7b6671f1ab84b7d1ff9f7ae483db97.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/ba7b6671f1ab84b7d1ff9f7ae483db97.jpg', '388901', 'image/jpeg', 9, 1564471317, 1, 1),
+(349, '17c4918d59ef74b5f15b63ce905cc301.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/17c4918d59ef74b5f15b63ce905cc301.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/17c4918d59ef74b5f15b63ce905cc301.jpg', '496157', 'image/jpeg', 9, 1564471317, 1, 1),
+(350, '29bcd8aeffa602b6bc37c9ea219f54a1.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/29bcd8aeffa602b6bc37c9ea219f54a1.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/29bcd8aeffa602b6bc37c9ea219f54a1.jpg', '213140', 'image/jpeg', 9, 1564471317, 1, 1),
+(351, '5ccce7202973e32e7b2086010e29038b.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/5ccce7202973e32e7b2086010e29038b.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/5ccce7202973e32e7b2086010e29038b.jpg', '244587', 'image/jpeg', 9, 1564471318, 1, 1),
+(352, 'dc887ac553f4ea66365e69a626b4f030.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/dc887ac553f4ea66365e69a626b4f030.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/dc887ac553f4ea66365e69a626b4f030.jpg', '281625', 'image/jpeg', 9, 1564471318, 1, 1),
+(353, '77aedb47edfd4f9f3fe4d0be51bb2994.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/77aedb47edfd4f9f3fe4d0be51bb2994.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/77aedb47edfd4f9f3fe4d0be51bb2994.jpg', '415317', 'image/jpeg', 9, 1564471318, 1, 1),
+(354, 'c57055e3fbd06b6947e49da47751ed7e.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/c57055e3fbd06b6947e49da47751ed7e.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/c57055e3fbd06b6947e49da47751ed7e.jpg', '351565', 'image/jpeg', 9, 1564471318, 1, 1),
+(355, 'efdf887ad14277311c8f373197bd95ad.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/efdf887ad14277311c8f373197bd95ad.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/efdf887ad14277311c8f373197bd95ad.jpg', '301960', 'image/jpeg', 9, 1564471318, 1, 1),
+(356, '39154c06e825503436d4e488aecfc466.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/39154c06e825503436d4e488aecfc466.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/39154c06e825503436d4e488aecfc466.jpg', '195113', 'image/jpeg', 9, 1564471319, 1, 1),
+(357, '3bbf70c1bbebee6dec6717700a1a0fb1.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/3bbf70c1bbebee6dec6717700a1a0fb1.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/07/30/3bbf70c1bbebee6dec6717700a1a0fb1.jpg', '580964', 'image/jpeg', 9, 1564471319, 1, 1),
+(358, '17_product_detail_wap.jpg', '/uploads/qrcode/17_product_detail_wap.jpg', '/uploads/qrcode/17_product_detail_wap.jpg', '515', 'image/jpeg', 1, 1564471378, 1, 2),
+(359, '15_product_detail_wap.jpg', '/uploads/qrcode/15_product_detail_wap.jpg', '/uploads/qrcode/15_product_detail_wap.jpg', '503', 'image/jpeg', 1, 1564471548, 1, 2),
+(360, '877a02bb7784829a8228a5acb176fc4e.jpeg', '/uploads/store/comment/20190730/877a02bb7784829a8228a5acb176fc4e.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190730/s_877a02bb7784829a8228a5acb176fc4e.jpeg', '34796', 'image/jpeg', 1, 1564471601, 1, 2),
+(361, '15_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/15_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/15_product_detail_168_is_promoter_1.wap.jpg', '597', 'image/jpeg', 1, 1564471759, 1, 2),
+(362, '9_product_detail_wap.jpg', '/uploads/qrcode/9_product_detail_wap.jpg', '/uploads/qrcode/9_product_detail_wap.jpg', '505', 'image/jpeg', 1, 1564471851, 1, 2),
+(363, '11_product_detail_wap.jpg', '/uploads/qrcode/11_product_detail_wap.jpg', '/uploads/qrcode/11_product_detail_wap.jpg', '507', 'image/jpeg', 1, 1564471867, 1, 2),
+(364, '7_combination_detail_wap.jpg', '/uploads/qrcode/7_combination_detail_wap.jpg', '/uploads/qrcode/7_combination_detail_wap.jpg', '701', 'image/jpeg', 1, 1564471947, 1, 2),
+(365, '14_product_detail_wap.jpg', '/uploads/qrcode/14_product_detail_wap.jpg', '/uploads/qrcode/14_product_detail_wap.jpg', '508', 'image/jpeg', 1, 1564472782, 1, 2),
+(366, '12_product_detail_wap.jpg', '/uploads/qrcode/12_product_detail_wap.jpg', '/uploads/qrcode/12_product_detail_wap.jpg', '506', 'image/jpeg', 1, 1564473217, 1, 2),
+(367, 'abcc8565c09de61b2cc05a00a787c493.jpeg', '/uploads/store/comment/20190730/abcc8565c09de61b2cc05a00a787c493.jpeg', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/store/comment/20190730/s_abcc8565c09de61b2cc05a00a787c493.jpeg', '255441', 'image/jpeg', 1, 1564473381, 1, 2),
+(368, '8_product_detail_wap.jpg', '/uploads/qrcode/8_product_detail_wap.jpg', '/uploads/qrcode/8_product_detail_wap.jpg', '507', 'image/jpeg', 1, 1564474013, 1, 2),
+(369, '7_product_detail_wap.jpg', '/uploads/qrcode/7_product_detail_wap.jpg', '/uploads/qrcode/7_product_detail_wap.jpg', '508', 'image/jpeg', 1, 1564474410, 1, 2),
+(370, '0ded3d3f72d654fb33c8c9f30a268c97.png', '/uploads/attach/2019/07/20190730/0ded3d3f72d654fb33c8c9f30a268c97.png', '//web/wwwroot/kaifa.crmeb.net/CRMEB/public/uploads/attach/2019/07/20190730/s_0ded3d3f72d654fb33c8c9f30a268c97.png', '1520', 'image/png', 4, 1564482007, 1, 1),
+(371, '415_0_user_wap.jpg', '/uploads/qrcode/415_0_user_wap.jpg', '/uploads/qrcode/415_0_user_wap.jpg', '421', 'image/jpeg', 1, 1564493992, 1, 2),
+(372, 'dd17e20190730213952987055.jpg', '/uploads/wap/spread/poster/dd17e20190730213952987055.jpg', '/uploads/wap/spread/poster/dd17e20190730213952987055.jpg', '82221', 'image/jpeg', 1, 1564493992, 1, 2),
+(373, 'b691320190730213952751597.jpg', '/uploads/wap/spread/poster/b691320190730213952751597.jpg', '/uploads/wap/spread/poster/b691320190730213952751597.jpg', '54599', 'image/jpeg', 1, 1564493992, 1, 2),
+(374, '3f68920190730213953417231.jpg', '/uploads/wap/spread/poster/3f68920190730213953417231.jpg', '/uploads/wap/spread/poster/3f68920190730213953417231.jpg', '75246', 'image/jpeg', 1, 1564493993, 1, 2),
+(375, '3_425_0_bargain_share_wap.jpg', '/uploads/qrcode/3_425_0_bargain_share_wap.jpg', '/uploads/qrcode/3_425_0_bargain_share_wap.jpg', '693', 'image/jpeg', 1, 1564537331, 1, 2),
+(376, '0e4a220190731094211638237.jpg', '/uploads/wap/activity/bargain/poster/0e4a220190731094211638237.jpg', '/uploads/wap/activity/bargain/poster/0e4a220190731094211638237.jpg', '49868', 'image/jpeg', 1, 1564537331, 1, 2),
+(377, '3_204_0_bargain_share_wap.jpg', '/uploads/qrcode/3_204_0_bargain_share_wap.jpg', '/uploads/qrcode/3_204_0_bargain_share_wap.jpg', '688', 'image/jpeg', 1, 1564537378, 1, 2),
+(378, 'd81f220190731094258162370.jpg', '/uploads/wap/activity/bargain/poster/d81f220190731094258162370.jpg', '/uploads/wap/activity/bargain/poster/d81f220190731094258162370.jpg', '49691', 'image/jpeg', 1, 1564537378, 1, 2),
+(379, '1769320190731094332310972.jpg', '/uploads/wap/activity/bargain/poster/1769320190731094332310972.jpg', '/uploads/wap/activity/bargain/poster/1769320190731094332310972.jpg', '49691', 'image/jpeg', 1, 1564537412, 1, 2),
+(380, '5f26820190731094348129377.jpg', '/uploads/wap/activity/bargain/poster/5f26820190731094348129377.jpg', '/uploads/wap/activity/bargain/poster/5f26820190731094348129377.jpg', '49691', 'image/jpeg', 1, 1564537428, 1, 2),
+(381, '02f0620190731094507277981.jpg', '/uploads/wap/activity/bargain/poster/02f0620190731094507277981.jpg', '/uploads/wap/activity/bargain/poster/02f0620190731094507277981.jpg', '49691', 'image/jpeg', 1, 1564537507, 1, 2),
+(382, 'b200420190731094638251493.jpg', '/uploads/wap/activity/bargain/poster/b200420190731094638251493.jpg', '/uploads/wap/activity/bargain/poster/b200420190731094638251493.jpg', '49691', 'image/jpeg', 1, 1564537598, 1, 2),
+(383, '6_combination_detail_wap.jpg', '/uploads/qrcode/6_combination_detail_wap.jpg', '/uploads/qrcode/6_combination_detail_wap.jpg', '704', 'image/jpeg', 1, 1564538325, 1, 2),
+(384, '3_395_0_bargain_share_wap.jpg', '/uploads/qrcode/3_395_0_bargain_share_wap.jpg', '/uploads/qrcode/3_395_0_bargain_share_wap.jpg', '691', 'image/jpeg', 1, 1564538706, 1, 2),
+(385, 'b20052019073110050785470.jpg', '/uploads/wap/activity/bargain/poster/b20052019073110050785470.jpg', '/uploads/wap/activity/bargain/poster/b20052019073110050785470.jpg', '50195', 'image/jpeg', 1, 1564538707, 1, 2),
+(386, '5_395_0_bargain_share_wap.jpg', '/uploads/qrcode/5_395_0_bargain_share_wap.jpg', '/uploads/qrcode/5_395_0_bargain_share_wap.jpg', '689', 'image/jpeg', 1, 1564538865, 1, 2),
+(387, '6098e20190731100746153509.jpg', '/uploads/wap/activity/bargain/poster/6098e20190731100746153509.jpg', '/uploads/wap/activity/bargain/poster/6098e20190731100746153509.jpg', '53472', 'image/jpeg', 1, 1564538866, 1, 2),
+(388, '3_436_0_bargain_share_wap.jpg', '/uploads/qrcode/3_436_0_bargain_share_wap.jpg', '/uploads/qrcode/3_436_0_bargain_share_wap.jpg', '703', 'image/jpeg', 1, 1564542315, 1, 2),
+(389, '15d4e20190731110515161770.jpg', '/uploads/wap/activity/bargain/poster/15d4e20190731110515161770.jpg', '/uploads/wap/activity/bargain/poster/15d4e20190731110515161770.jpg', '49981', 'image/jpeg', 1, 1564542315, 1, 2),
+(390, '07458ad91b07fe421f8617d4fa937874.png', '/uploads/attach/2019/07/20190731/07458ad91b07fe421f8617d4fa937874.png', '/./uploads/attach/2019/07/20190731/s_07458ad91b07fe421f8617d4fa937874.png', '2932', 'image/png', 26, 1564555904, 1, 1),
+(391, '3_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/3_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/3_product_detail_168_is_promoter_1.wap.jpg', '596', 'image/jpeg', 1, 1564560003, 1, 2),
+(392, '19_168_1_pink_share_wap.jpg', '/uploads/qrcode/19_168_1_pink_share_wap.jpg', '/uploads/qrcode/19_168_1_pink_share_wap.jpg', '704', 'image/jpeg', 1, 1564561106, 1, 2),
+(393, '0325520190731161827831800.jpg', '/uploads/wap/activity/pink/poster/0325520190731161827831800.jpg', '/uploads/wap/activity/pink/poster/0325520190731161827831800.jpg', '53521', 'image/jpeg', 1, 1564561107, 1, 2),
+(394, '6_168_1_bargain_share_wap.jpg', '/uploads/qrcode/6_168_1_bargain_share_wap.jpg', '/uploads/qrcode/6_168_1_bargain_share_wap.jpg', '688', 'image/jpeg', 1, 1564561316, 1, 2),
+(395, '9e9a32019073116215657375.jpg', '/uploads/wap/activity/bargain/poster/9e9a32019073116215657375.jpg', '/uploads/wap/activity/bargain/poster/9e9a32019073116215657375.jpg', '51590', 'image/jpeg', 1, 1564561316, 1, 2),
+(396, '5_168_1_bargain_share_wap.jpg', '/uploads/qrcode/5_168_1_bargain_share_wap.jpg', '/uploads/qrcode/5_168_1_bargain_share_wap.jpg', '694', 'image/jpeg', 1, 1564561330, 1, 2),
+(397, '583cf20190731162210232404.jpg', '/uploads/wap/activity/bargain/poster/583cf20190731162210232404.jpg', '/uploads/wap/activity/bargain/poster/583cf20190731162210232404.jpg', '53276', 'image/jpeg', 1, 1564561330, 1, 2),
+(398, '4e46e20190731162213519296.jpg', '/uploads/wap/activity/bargain/poster/4e46e20190731162213519296.jpg', '/uploads/wap/activity/bargain/poster/4e46e20190731162213519296.jpg', '53276', 'image/jpeg', 1, 1564561333, 1, 2),
+(399, '70d3120190731162218376.jpg', '/uploads/wap/activity/bargain/poster/70d3120190731162218376.jpg', '/uploads/wap/activity/bargain/poster/70d3120190731162218376.jpg', '51590', 'image/jpeg', 1, 1564561338, 1, 2),
+(400, '5ea1620190731163024676497.jpg', '/uploads/wap/activity/pink/poster/5ea1620190731163024676497.jpg', '/uploads/wap/activity/pink/poster/5ea1620190731163024676497.jpg', '53521', 'image/jpeg', 1, 1564561824, 1, 2),
+(401, 'aee922019073116302747985.jpg', '/uploads/wap/activity/pink/poster/aee922019073116302747985.jpg', '/uploads/wap/activity/pink/poster/aee922019073116302747985.jpg', '53521', 'image/jpeg', 1, 1564561827, 1, 2),
+(402, 'cec6f20190731163107641673.jpg', '/uploads/wap/spread/poster/cec6f20190731163107641673.jpg', '/uploads/wap/spread/poster/cec6f20190731163107641673.jpg', '83037', 'image/jpeg', 1, 1564561867, 1, 2),
+(403, 'abdeb20190731163107912404.jpg', '/uploads/wap/spread/poster/abdeb20190731163107912404.jpg', '/uploads/wap/spread/poster/abdeb20190731163107912404.jpg', '55417', 'image/jpeg', 1, 1564561867, 1, 2),
+(404, '2b5152019073116310859207.jpg', '/uploads/wap/spread/poster/2b5152019073116310859207.jpg', '/uploads/wap/spread/poster/2b5152019073116310859207.jpg', '76071', 'image/jpeg', 1, 1564561868, 1, 2),
+(405, '799fc20190731180659979508.jpg', '/uploads/wap/spread/poster/799fc20190731180659979508.jpg', '/uploads/wap/spread/poster/799fc20190731180659979508.jpg', '83037', 'image/jpeg', 1, 1564567619, 1, 2),
+(406, 'd296c20190731180659489101.jpg', '/uploads/wap/spread/poster/d296c20190731180659489101.jpg', '/uploads/wap/spread/poster/d296c20190731180659489101.jpg', '55417', 'image/jpeg', 1, 1564567619, 1, 2),
+(407, '884d720190731180659390579.jpg', '/uploads/wap/spread/poster/884d720190731180659390579.jpg', '/uploads/wap/spread/poster/884d720190731180659390579.jpg', '76071', 'image/jpeg', 1, 1564567619, 1, 2),
+(408, '3_168_1_bargain_share_wap.jpg', '/uploads/qrcode/3_168_1_bargain_share_wap.jpg', '/uploads/qrcode/3_168_1_bargain_share_wap.jpg', '697', 'image/jpeg', 1, 1564567647, 1, 2),
+(409, '4f16420190731180727576491.jpg', '/uploads/wap/activity/bargain/poster/4f16420190731180727576491.jpg', '/uploads/wap/activity/bargain/poster/4f16420190731180727576491.jpg', '50223', 'image/jpeg', 1, 1564567647, 1, 2),
+(410, '5_combination_detail_wap.jpg', '/uploads/qrcode/5_combination_detail_wap.jpg', '/uploads/qrcode/5_combination_detail_wap.jpg', '707', 'image/jpeg', 1, 1564582398, 1, 2),
+(411, '7c66482c00732e44c87af7e29196ddd8.jpeg', '/uploads/store/comment/20190801/7c66482c00732e44c87af7e29196ddd8.jpeg', '/./uploads/store/comment/20190801/s_7c66482c00732e44c87af7e29196ddd8.jpeg', '79481', 'image/jpeg', 1, 1564644698, 1, 2),
+(412, 'ea1ba34d69b83ce1d5e28098816541fa.jpg', '/uploads/store/comment/20190801/ea1ba34d69b83ce1d5e28098816541fa.jpg', '/./uploads/store/comment/20190801/s_ea1ba34d69b83ce1d5e28098816541fa.jpg', '248362', 'image/jpeg', 1, 1564647303, 1, 2),
+(413, 'deb30359d22c0b80f3cece86cb462104.png', '/uploads/attach/2019/08/20190801/deb30359d22c0b80f3cece86cb462104.png', '/./uploads/attach/2019/08/20190801/s_deb30359d22c0b80f3cece86cb462104.png', '2932', 'image/png', 24, 1564651414, 1, 1),
+(414, 'af69ee46c79ec68b578afea61b5a37e4.jpg', '/uploads/attach/2019/08/20190801/af69ee46c79ec68b578afea61b5a37e4.jpg', '/./uploads/attach/2019/08/20190801/s_af69ee46c79ec68b578afea61b5a37e4.jpg', '57080', 'image/jpeg', 29, 1564653739, 1, 1),
+(415, 'babe42d3a353d81b3a2a766dddf11208.jpg', '/uploads/attach/2019/08/20190801/babe42d3a353d81b3a2a766dddf11208.jpg', '/./uploads/attach/2019/08/20190801/s_babe42d3a353d81b3a2a766dddf11208.jpg', '74513', 'image/jpeg', 29, 1564653981, 1, 1),
+(416, 'e27e3110eef4b0338368f2203eab8a0b.jpg', '/uploads/attach/2019/08/20190801/e27e3110eef4b0338368f2203eab8a0b.jpg', '/./uploads/attach/2019/08/20190801/s_e27e3110eef4b0338368f2203eab8a0b.jpg', '34604', 'image/jpeg', 29, 1564654207, 1, 1),
+(418, '4b642ff5685eaf9f2bf205987b13c546.jpg', '/uploads/attach/2019/08/20190801/4b642ff5685eaf9f2bf205987b13c546.jpg', '/./uploads/attach/2019/08/20190801/s_4b642ff5685eaf9f2bf205987b13c546.jpg', '50247', 'image/jpeg', 29, 1564654405, 1, 1),
+(419, '4_combination_detail_wap.jpg', '/uploads/qrcode/4_combination_detail_wap.jpg', '/uploads/qrcode/4_combination_detail_wap.jpg', '704', 'image/jpeg', 1, 1564657492, 1, 2),
+(420, '419_0_user_wap.jpg', '/uploads/qrcode/419_0_user_wap.jpg', '/uploads/qrcode/419_0_user_wap.jpg', '509', 'image/jpeg', 1, 1564677147, 1, 2),
+(421, '9bdb820190802003228575917.jpg', '/uploads/wap/spread/poster/9bdb820190802003228575917.jpg', '/uploads/wap/spread/poster/9bdb820190802003228575917.jpg', '82815', 'image/jpeg', 1, 1564677148, 1, 2),
+(422, '1fd6c20190802003228154299.jpg', '/uploads/wap/spread/poster/1fd6c20190802003228154299.jpg', '/uploads/wap/spread/poster/1fd6c20190802003228154299.jpg', '55194', 'image/jpeg', 1, 1564677148, 1, 2),
+(423, 'ce11620190802003228417224.jpg', '/uploads/wap/spread/poster/ce11620190802003228417224.jpg', '/uploads/wap/spread/poster/ce11620190802003228417224.jpg', '75830', 'image/jpeg', 1, 1564677148, 1, 2),
+(424, 'eeb6920190802071402746172.jpg', '/uploads/wap/spread/poster/eeb6920190802071402746172.jpg', '/uploads/wap/spread/poster/eeb6920190802071402746172.jpg', '82815', 'image/jpeg', 1, 1564701242, 1, 2),
+(425, 'f5c1520190802071403159910.jpg', '/uploads/wap/spread/poster/f5c1520190802071403159910.jpg', '/uploads/wap/spread/poster/f5c1520190802071403159910.jpg', '55194', 'image/jpeg', 1, 1564701243, 1, 2),
+(426, '995f520190802071403443279.jpg', '/uploads/wap/spread/poster/995f520190802071403443279.jpg', '/uploads/wap/spread/poster/995f520190802071403443279.jpg', '75830', 'image/jpeg', 1, 1564701243, 1, 2),
+(427, 'dc4c42019080208484862611.jpg', '/uploads/wap/spread/poster/dc4c42019080208484862611.jpg', '/uploads/wap/spread/poster/dc4c42019080208484862611.jpg', '83037', 'image/jpeg', 1, 1564706928, 1, 2),
+(428, 'a34ba20190802084849473129.jpg', '/uploads/wap/spread/poster/a34ba20190802084849473129.jpg', '/uploads/wap/spread/poster/a34ba20190802084849473129.jpg', '55417', 'image/jpeg', 1, 1564706929, 1, 2),
+(429, '2012520190802084849927297.jpg', '/uploads/wap/spread/poster/2012520190802084849927297.jpg', '/uploads/wap/spread/poster/2012520190802084849927297.jpg', '76071', 'image/jpeg', 1, 1564706929, 1, 2),
+(430, 'bf0612eb1e2c2dd8294396ab50305812.gif', '/uploads/store/comment/20190802/bf0612eb1e2c2dd8294396ab50305812.gif', '/./uploads/store/comment/20190802/s_bf0612eb1e2c2dd8294396ab50305812.gif', '1079593', 'image/gif', 1, 1564707895, 1, 2),
+(431, '3_product_detail_443_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_443_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_443_is_promoter_0.wap.jpg', '613', 'image/jpeg', 1, 1564710493, 1, 2),
+(432, 'd388a1de318fa8549f35112dff426a02.jpeg', '/uploads/store/comment/20190802/d388a1de318fa8549f35112dff426a02.jpeg', '/./uploads/store/comment/20190802/s_d388a1de318fa8549f35112dff426a02.jpeg', '84273', 'image/jpeg', 1, 1564716732, 1, 2),
+(433, '2bcab2019080309425955023.jpg', '/uploads/wap/activity/bargain/poster/2bcab2019080309425955023.jpg', '/uploads/wap/activity/bargain/poster/2bcab2019080309425955023.jpg', '50223', 'image/jpeg', 1, 1564796579, 1, 2),
+(434, '3_189_0_bargain_share_wap.jpg', '/uploads/qrcode/3_189_0_bargain_share_wap.jpg', '/uploads/qrcode/3_189_0_bargain_share_wap.jpg', '805', 'image/jpeg', 1, 1564835273, 1, 2),
+(435, 'f037020190803202754648738.jpg', '/uploads/wap/activity/bargain/poster/f037020190803202754648738.jpg', '/uploads/wap/activity/bargain/poster/f037020190803202754648738.jpg', '50493', 'image/jpeg', 1, 1564835274, 1, 2),
+(436, '1ab60201908032027575049.jpg', '/uploads/wap/activity/bargain/poster/1ab60201908032027575049.jpg', '/uploads/wap/activity/bargain/poster/1ab60201908032027575049.jpg', '50493', 'image/jpeg', 1, 1564835277, 1, 2),
+(437, 'e362820190804170307134451.jpg', '/uploads/wap/spread/poster/e362820190804170307134451.jpg', '/uploads/wap/spread/poster/e362820190804170307134451.jpg', '83136', 'image/jpeg', 1, 1564909387, 1, 2),
+(438, '0741720190804170307431588.jpg', '/uploads/wap/spread/poster/0741720190804170307431588.jpg', '/uploads/wap/spread/poster/0741720190804170307431588.jpg', '55503', 'image/jpeg', 1, 1564909387, 1, 2),
+(439, '6a66120190804170307325610.jpg', '/uploads/wap/spread/poster/6a66120190804170307325610.jpg', '/uploads/wap/spread/poster/6a66120190804170307325610.jpg', '76163', 'image/jpeg', 1, 1564909387, 1, 2),
+(440, '576e520190804170837710738.jpg', '/uploads/wap/spread/poster/576e520190804170837710738.jpg', '/uploads/wap/spread/poster/576e520190804170837710738.jpg', '83136', 'image/jpeg', 1, 1564909717, 1, 2),
+(441, '170f620190804170837300050.jpg', '/uploads/wap/spread/poster/170f620190804170837300050.jpg', '/uploads/wap/spread/poster/170f620190804170837300050.jpg', '55503', 'image/jpeg', 1, 1564909717, 1, 2),
+(442, 'ca3a920190804170837558790.jpg', '/uploads/wap/spread/poster/ca3a920190804170837558790.jpg', '/uploads/wap/spread/poster/ca3a920190804170837558790.jpg', '76163', 'image/jpeg', 1, 1564909717, 1, 2),
+(443, '3_product_detail_195_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_195_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_195_is_promoter_0.wap.jpg', '594', 'image/jpeg', 1, 1564927310, 1, 2),
+(444, '68c4bc506d0ce62678e5ad0b5186f444.jpeg', '/uploads/store/comment/20190805/68c4bc506d0ce62678e5ad0b5186f444.jpeg', '/./uploads/store/comment/20190805/s_68c4bc506d0ce62678e5ad0b5186f444.jpeg', '50775', 'image/jpeg', 1, 1564963901, 1, 2),
+(445, '4e77a1a4eb8484c819811315892b9612.jpeg', '/uploads/store/comment/20190805/4e77a1a4eb8484c819811315892b9612.jpeg', '/./uploads/store/comment/20190805/s_4e77a1a4eb8484c819811315892b9612.jpeg', '50775', 'image/jpeg', 1, 1564964012, 1, 2),
+(446, 'fdbe78bb1d6d8d73b2248199b95ac44b.jpeg', '/uploads/store/comment/20190805/fdbe78bb1d6d8d73b2248199b95ac44b.jpeg', '/./uploads/store/comment/20190805/s_fdbe78bb1d6d8d73b2248199b95ac44b.jpeg', '50775', 'image/jpeg', 1, 1564964050, 1, 2),
+(447, '4795120190805081433691633.jpg', '/uploads/wap/spread/poster/4795120190805081433691633.jpg', '/uploads/wap/spread/poster/4795120190805081433691633.jpg', '83037', 'image/jpeg', 1, 1564964073, 1, 2),
+(448, '110e720190805081433747728.jpg', '/uploads/wap/spread/poster/110e720190805081433747728.jpg', '/uploads/wap/spread/poster/110e720190805081433747728.jpg', '55417', 'image/jpeg', 1, 1564964073, 1, 2),
+(449, 'a115120190805081434892661.jpg', '/uploads/wap/spread/poster/a115120190805081434892661.jpg', '/uploads/wap/spread/poster/a115120190805081434892661.jpg', '76071', 'image/jpeg', 1, 1564964074, 1, 2),
+(450, '260c22019080508200126861.jpg', '/uploads/wap/spread/poster/260c22019080508200126861.jpg', '/uploads/wap/spread/poster/260c22019080508200126861.jpg', '82086', 'image/jpeg', 1, 1564964401, 1, 2),
+(451, '0ebcc20190805082002357931.jpg', '/uploads/wap/spread/poster/0ebcc20190805082002357931.jpg', '/uploads/wap/spread/poster/0ebcc20190805082002357931.jpg', '54464', 'image/jpeg', 1, 1564964402, 1, 2),
+(452, '94f6d20190805082002613912.jpg', '/uploads/wap/spread/poster/94f6d20190805082002613912.jpg', '/uploads/wap/spread/poster/94f6d20190805082002613912.jpg', '75100', 'image/jpeg', 1, 1564964402, 1, 2),
+(453, '2edfe20190805082030308267.jpg', '/uploads/wap/spread/poster/2edfe20190805082030308267.jpg', '/uploads/wap/spread/poster/2edfe20190805082030308267.jpg', '82086', 'image/jpeg', 1, 1564964430, 1, 2),
+(454, 'b83aa20190805082030551873.jpg', '/uploads/wap/spread/poster/b83aa20190805082030551873.jpg', '/uploads/wap/spread/poster/b83aa20190805082030551873.jpg', '54464', 'image/jpeg', 1, 1564964430, 1, 2),
+(455, 'a729d2019080508203145821.jpg', '/uploads/wap/spread/poster/a729d2019080508203145821.jpg', '/uploads/wap/spread/poster/a729d2019080508203145821.jpg', '75100', 'image/jpeg', 1, 1564964431, 1, 2),
+(456, '76c5320190805082037481844.jpg', '/uploads/wap/spread/poster/76c5320190805082037481844.jpg', '/uploads/wap/spread/poster/76c5320190805082037481844.jpg', '82086', 'image/jpeg', 1, 1564964437, 1, 2),
+(457, '309a820190805082037537577.jpg', '/uploads/wap/spread/poster/309a820190805082037537577.jpg', '/uploads/wap/spread/poster/309a820190805082037537577.jpg', '54464', 'image/jpeg', 1, 1564964437, 1, 2),
+(458, '0266e20190805082037363218.jpg', '/uploads/wap/spread/poster/0266e20190805082037363218.jpg', '/uploads/wap/spread/poster/0266e20190805082037363218.jpg', '75100', 'image/jpeg', 1, 1564964437, 1, 2),
+(459, 'c1eeb99308ae0e019ff45a835f3ca8e0.jpeg', '/uploads/store/comment/20190805/c1eeb99308ae0e019ff45a835f3ca8e0.jpeg', '/./uploads/store/comment/20190805/s_c1eeb99308ae0e019ff45a835f3ca8e0.jpeg', '50775', 'image/jpeg', 1, 1564967607, 1, 2),
+(460, '455_0_user_wap.jpg', '/uploads/qrcode/455_0_user_wap.jpg', '/uploads/qrcode/455_0_user_wap.jpg', '507', 'image/jpeg', 1, 1564967633, 1, 2),
+(461, '3123520190805091353485731.jpg', '/uploads/wap/spread/poster/3123520190805091353485731.jpg', '/uploads/wap/spread/poster/3123520190805091353485731.jpg', '82722', 'image/jpeg', 1, 1564967633, 1, 2),
+(462, '0e57020190805091353912692.jpg', '/uploads/wap/spread/poster/0e57020190805091353912692.jpg', '/uploads/wap/spread/poster/0e57020190805091353912692.jpg', '55089', 'image/jpeg', 1, 1564967633, 1, 2),
+(463, '1ff8a20190805091353617086.jpg', '/uploads/wap/spread/poster/1ff8a20190805091353617086.jpg', '/uploads/wap/spread/poster/1ff8a20190805091353617086.jpg', '75751', 'image/jpeg', 1, 1564967633, 1, 2),
+(464, 'c15de8387d8d946c3ffb7ce24bb5023c.jpg', '/uploads/store/comment/20190805/c15de8387d8d946c3ffb7ce24bb5023c.jpg', '/./uploads/store/comment/20190805/s_c15de8387d8d946c3ffb7ce24bb5023c.jpg', '248684', 'image/jpeg', 1, 1564967974, 1, 2),
+(465, '2ebf87df26dfdfaaf8b3f99e0c6159c7.jpg', '/uploads/store/comment/20190805/2ebf87df26dfdfaaf8b3f99e0c6159c7.jpg', '/./uploads/store/comment/20190805/s_2ebf87df26dfdfaaf8b3f99e0c6159c7.jpg', '264573', 'image/jpeg', 1, 1564967988, 1, 2),
+(466, 'dd5fab7c85393e4ae1966641dd7278b2.jpeg', '/uploads/store/comment/20190805/dd5fab7c85393e4ae1966641dd7278b2.jpeg', '/./uploads/store/comment/20190805/s_dd5fab7c85393e4ae1966641dd7278b2.jpeg', '36133', 'image/jpeg', 1, 1564968162, 1, 2),
+(467, '887db984b5f1138e08e1d9b069af766e.jpg', '/uploads/attach/2019/08/20190805/887db984b5f1138e08e1d9b069af766e.jpg', '/./uploads/attach/2019/08/20190805/s_887db984b5f1138e08e1d9b069af766e.jpg', '16250', 'image/jpeg', 0, 1564974592, 1, 1),
+(468, '10_seckill_detail_wap.jpg', '/uploads/qrcode/10_seckill_detail_wap.jpg', '/uploads/qrcode/10_seckill_detail_wap.jpg', '707', 'image/jpeg', 1, 1564975074, 1, 2),
+(469, '6_169_0_bargain_share_wap.jpg', '/uploads/qrcode/6_169_0_bargain_share_wap.jpg', '/uploads/qrcode/6_169_0_bargain_share_wap.jpg', '810', 'image/jpeg', 1, 1564989125, 1, 2),
+(470, '4d28920190805151206105655.jpg', '/uploads/wap/activity/bargain/poster/4d28920190805151206105655.jpg', '/uploads/wap/activity/bargain/poster/4d28920190805151206105655.jpg', '51846', 'image/jpeg', 1, 1564989126, 1, 2),
+(471, '9b82920190805151230870826.jpg', '/uploads/wap/activity/bargain/poster/9b82920190805151230870826.jpg', '/uploads/wap/activity/bargain/poster/9b82920190805151230870826.jpg', '51846', 'image/jpeg', 1, 1564989150, 1, 2),
+(472, '0baf120190805151311797500.jpg', '/uploads/wap/activity/bargain/poster/0baf120190805151311797500.jpg', '/uploads/wap/activity/bargain/poster/0baf120190805151311797500.jpg', '51846', 'image/jpeg', 1, 1564989191, 1, 2),
+(473, '6_166_0_bargain_share_wap.jpg', '/uploads/qrcode/6_166_0_bargain_share_wap.jpg', '/uploads/qrcode/6_166_0_bargain_share_wap.jpg', '819', 'image/jpeg', 1, 1564989194, 1, 2),
+(474, '63dc720190805151314746533.jpg', '/uploads/wap/activity/bargain/poster/63dc720190805151314746533.jpg', '/uploads/wap/activity/bargain/poster/63dc720190805151314746533.jpg', '51292', 'image/jpeg', 1, 1564989194, 1, 2),
+(475, '486fb2019080515132563825.jpg', '/uploads/wap/activity/bargain/poster/486fb2019080515132563825.jpg', '/uploads/wap/activity/bargain/poster/486fb2019080515132563825.jpg', '51292', 'image/jpeg', 1, 1564989205, 1, 2),
+(476, 'f0f6c20190805151401832055.jpg', '/uploads/wap/activity/bargain/poster/f0f6c20190805151401832055.jpg', '/uploads/wap/activity/bargain/poster/f0f6c20190805151401832055.jpg', '51846', 'image/jpeg', 1, 1564989241, 1, 2),
+(477, '8c51420190805151437227740.jpg', '/uploads/wap/activity/bargain/poster/8c51420190805151437227740.jpg', '/uploads/wap/activity/bargain/poster/8c51420190805151437227740.jpg', '51846', 'image/jpeg', 1, 1564989277, 1, 2),
+(478, 'd0b4e20190805151609318496.jpg', '/uploads/wap/activity/bargain/poster/d0b4e20190805151609318496.jpg', '/uploads/wap/activity/bargain/poster/d0b4e20190805151609318496.jpg', '51846', 'image/jpeg', 1, 1564989369, 1, 2),
+(479, 'da94b20190805153415199651.jpg', '/uploads/wap/activity/bargain/poster/da94b20190805153415199651.jpg', '/uploads/wap/activity/bargain/poster/da94b20190805153415199651.jpg', '51590', 'image/jpeg', 1, 1564990455, 1, 2),
+(480, '594ca20190805153427519518.jpg', '/uploads/wap/activity/bargain/poster/594ca20190805153427519518.jpg', '/uploads/wap/activity/bargain/poster/594ca20190805153427519518.jpg', '51590', 'image/jpeg', 1, 1564990467, 1, 2),
+(481, 'a263920190805161950390936.jpg', '/uploads/wap/spread/poster/a263920190805161950390936.jpg', '/uploads/wap/spread/poster/a263920190805161950390936.jpg', '82086', 'image/jpeg', 1, 1564993190, 1, 2),
+(482, '4415120190805161950329113.jpg', '/uploads/wap/spread/poster/4415120190805161950329113.jpg', '/uploads/wap/spread/poster/4415120190805161950329113.jpg', '54464', 'image/jpeg', 1, 1564993190, 1, 2),
+(483, 'eeaeb20190805161950901671.jpg', '/uploads/wap/spread/poster/eeaeb20190805161950901671.jpg', '/uploads/wap/spread/poster/eeaeb20190805161950901671.jpg', '75100', 'image/jpeg', 1, 1564993190, 1, 2),
+(484, 'c5eee20190805162127521745.jpg', '/uploads/wap/spread/poster/c5eee20190805162127521745.jpg', '/uploads/wap/spread/poster/c5eee20190805162127521745.jpg', '82086', 'image/jpeg', 1, 1564993287, 1, 2),
+(485, 'd91ca20190805162127692693.jpg', '/uploads/wap/spread/poster/d91ca20190805162127692693.jpg', '/uploads/wap/spread/poster/d91ca20190805162127692693.jpg', '54464', 'image/jpeg', 1, 1564993287, 1, 2),
+(486, '90a8220190805162128186772.jpg', '/uploads/wap/spread/poster/90a8220190805162128186772.jpg', '/uploads/wap/spread/poster/90a8220190805162128186772.jpg', '75100', 'image/jpeg', 1, 1564993288, 1, 2),
+(487, '913a16ef51d525b5d8e96cff7ebd1f8c.jpeg', '/uploads/store/comment/20190805/913a16ef51d525b5d8e96cff7ebd1f8c.jpeg', '/./uploads/store/comment/20190805/s_913a16ef51d525b5d8e96cff7ebd1f8c.jpeg', '126907', 'image/jpeg', 1, 1564993319, 1, 2),
+(488, 'ec82e755fababcb24d4e7fd3b57e2e5f.jpeg', '/uploads/store/comment/20190805/ec82e755fababcb24d4e7fd3b57e2e5f.jpeg', '/./uploads/store/comment/20190805/s_ec82e755fababcb24d4e7fd3b57e2e5f.jpeg', '7713', 'image/jpeg', 1, 1564993374, 1, 2),
+(489, '220_0_user_wap.jpg', '/uploads/qrcode/220_0_user_wap.jpg', '/uploads/qrcode/220_0_user_wap.jpg', '507', 'image/jpeg', 1, 1564993452, 1, 2),
+(490, '4324e20190805162412674706.jpg', '/uploads/wap/spread/poster/4324e20190805162412674706.jpg', '/uploads/wap/spread/poster/4324e20190805162412674706.jpg', '82244', 'image/jpeg', 1, 1564993452, 1, 2),
+(491, '333cb20190805162412319381.jpg', '/uploads/wap/spread/poster/333cb20190805162412319381.jpg', '/uploads/wap/spread/poster/333cb20190805162412319381.jpg', '54616', 'image/jpeg', 1, 1564993452, 1, 2),
+(492, '39d3520190805162412311868.jpg', '/uploads/wap/spread/poster/39d3520190805162412311868.jpg', '/uploads/wap/spread/poster/39d3520190805162412311868.jpg', '75274', 'image/jpeg', 1, 1564993452, 1, 2),
+(493, '8bafe32d13bc393dd4b7d08f697e3130.jpeg', '/uploads/store/comment/20190806/8bafe32d13bc393dd4b7d08f697e3130.jpeg', '/./uploads/store/comment/20190806/s_8bafe32d13bc393dd4b7d08f697e3130.jpeg', '113249', 'image/jpeg', 1, 1565059461, 1, 2),
+(494, '43c2b9a9c96729ce73875f58a878fef6.png', '/uploads/store/comment/20190806/43c2b9a9c96729ce73875f58a878fef6.png', '/./uploads/store/comment/20190806/s_43c2b9a9c96729ce73875f58a878fef6.png', '18482', 'image/png', 1, 1565059501, 1, 2),
+(495, 'f06367fa70980d2b538b26ea136b1aea.jpeg', '/uploads/store/comment/20190806/f06367fa70980d2b538b26ea136b1aea.jpeg', '/./uploads/store/comment/20190806/s_f06367fa70980d2b538b26ea136b1aea.jpeg', '85013', 'image/jpeg', 1, 1565064411, 1, 2),
+(496, 'ddbc820190806152013205362.jpg', '/uploads/wap/spread/poster/ddbc820190806152013205362.jpg', '/uploads/wap/spread/poster/ddbc820190806152013205362.jpg', '82146', 'image/jpeg', 1, 1565076013, 1, 2),
+(497, 'c8ecf20190806152013103599.jpg', '/uploads/wap/spread/poster/c8ecf20190806152013103599.jpg', '/uploads/wap/spread/poster/c8ecf20190806152013103599.jpg', '54530', 'image/jpeg', 1, 1565076013, 1, 2),
+(498, 'caf1a20190806152015699470.jpg', '/uploads/wap/spread/poster/caf1a20190806152015699470.jpg', '/uploads/wap/spread/poster/caf1a20190806152015699470.jpg', '75164', 'image/jpeg', 1, 1565076015, 1, 2),
+(499, '459_0_user_wap.jpg', '/uploads/qrcode/459_0_user_wap.jpg', '/uploads/qrcode/459_0_user_wap.jpg', '497', 'image/jpeg', 1, 1565076213, 1, 2),
+(500, '93c8320190806152333279539.jpg', '/uploads/wap/spread/poster/93c8320190806152333279539.jpg', '/uploads/wap/spread/poster/93c8320190806152333279539.jpg', '83290', 'image/jpeg', 1, 1565076213, 1, 2),
+(501, 'd282e20190806152334850732.jpg', '/uploads/wap/spread/poster/d282e20190806152334850732.jpg', '/uploads/wap/spread/poster/d282e20190806152334850732.jpg', '55665', 'image/jpeg', 1, 1565076214, 1, 2),
+(502, 'af3b620190806152334477915.jpg', '/uploads/wap/spread/poster/af3b620190806152334477915.jpg', '/uploads/wap/spread/poster/af3b620190806152334477915.jpg', '76308', 'image/jpeg', 1, 1565076214, 1, 2),
+(503, '4612320190806152346755887.jpg', '/uploads/wap/spread/poster/4612320190806152346755887.jpg', '/uploads/wap/spread/poster/4612320190806152346755887.jpg', '83290', 'image/jpeg', 1, 1565076226, 1, 2),
+(504, '3610720190806152346499432.jpg', '/uploads/wap/spread/poster/3610720190806152346499432.jpg', '/uploads/wap/spread/poster/3610720190806152346499432.jpg', '55665', 'image/jpeg', 1, 1565076226, 1, 2),
+(505, '0000320190806152347729911.jpg', '/uploads/wap/spread/poster/0000320190806152347729911.jpg', '/uploads/wap/spread/poster/0000320190806152347729911.jpg', '76308', 'image/jpeg', 1, 1565076227, 1, 2),
+(506, 'b28d720190806154721105629.jpg', '/uploads/wap/spread/poster/b28d720190806154721105629.jpg', '/uploads/wap/spread/poster/b28d720190806154721105629.jpg', '83136', 'image/jpeg', 1, 1565077641, 1, 2),
+(507, 'a86c420190806154722369121.jpg', '/uploads/wap/spread/poster/a86c420190806154722369121.jpg', '/uploads/wap/spread/poster/a86c420190806154722369121.jpg', '55503', 'image/jpeg', 1, 1565077642, 1, 2),
+(508, '4f16420190806154722892554.jpg', '/uploads/wap/spread/poster/4f16420190806154722892554.jpg', '/uploads/wap/spread/poster/4f16420190806154722892554.jpg', '76163', 'image/jpeg', 1, 1565077642, 1, 2),
+(509, '3_266_0_bargain_share_wap.jpg', '/uploads/qrcode/3_266_0_bargain_share_wap.jpg', '/uploads/qrcode/3_266_0_bargain_share_wap.jpg', '798', 'image/jpeg', 1, 1565103821, 1, 2),
+(510, '6152920190806230341614852.jpg', '/uploads/wap/activity/bargain/poster/6152920190806230341614852.jpg', '/uploads/wap/activity/bargain/poster/6152920190806230341614852.jpg', '50566', 'image/jpeg', 1, 1565103821, 1, 2);
+INSERT INTO `eb_system_attachment` (`att_id`, `name`, `att_dir`, `satt_dir`, `att_size`, `att_type`, `pid`, `time`, `image_type`, `module_type`) VALUES
+(511, '3_169_0_bargain_share_wap.jpg', '/uploads/qrcode/3_169_0_bargain_share_wap.jpg', '/uploads/qrcode/3_169_0_bargain_share_wap.jpg', '806', 'image/jpeg', 1, 1565146110, 1, 2),
+(512, '6855420190807104830591301.jpg', '/uploads/wap/activity/bargain/poster/6855420190807104830591301.jpg', '/uploads/wap/activity/bargain/poster/6855420190807104830591301.jpg', '50468', 'image/jpeg', 1, 1565146110, 1, 2),
+(513, '3_product_detail_461_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_461_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_461_is_promoter_0.wap.jpg', '596', 'image/jpeg', 1, 1565149756, 1, 2),
+(514, '480_0_user_wap.jpg', '/uploads/qrcode/480_0_user_wap.jpg', '/uploads/qrcode/480_0_user_wap.jpg', '514', 'image/jpeg', 1, 1565150826, 1, 2),
+(515, '0f65c20190807120706479545.jpg', '/uploads/wap/spread/poster/0f65c20190807120706479545.jpg', '/uploads/wap/spread/poster/0f65c20190807120706479545.jpg', '83254', 'image/jpeg', 1, 1565150826, 1, 2),
+(516, '3a08420190807120706115743.jpg', '/uploads/wap/spread/poster/3a08420190807120706115743.jpg', '/uploads/wap/spread/poster/3a08420190807120706115743.jpg', '55618', 'image/jpeg', 1, 1565150826, 1, 2),
+(517, 'd490d20190807120706976772.jpg', '/uploads/wap/spread/poster/d490d20190807120706976772.jpg', '/uploads/wap/spread/poster/d490d20190807120706976772.jpg', '76289', 'image/jpeg', 1, 1565150826, 1, 2),
+(518, 'f854820190807121015787271.jpg', '/uploads/wap/spread/poster/f854820190807121015787271.jpg', '/uploads/wap/spread/poster/f854820190807121015787271.jpg', '82173', 'image/jpeg', 1, 1565151015, 1, 2),
+(519, 'ab2b4201908071210155882.jpg', '/uploads/wap/spread/poster/ab2b4201908071210155882.jpg', '/uploads/wap/spread/poster/ab2b4201908071210155882.jpg', '54547', 'image/jpeg', 1, 1565151015, 1, 2),
+(520, '42ffc20190807121016294381.jpg', '/uploads/wap/spread/poster/42ffc20190807121016294381.jpg', '/uploads/wap/spread/poster/42ffc20190807121016294381.jpg', '75186', 'image/jpeg', 1, 1565151016, 1, 2),
+(521, '7fea620190807121432220854.jpg', '/uploads/wap/spread/poster/7fea620190807121432220854.jpg', '/uploads/wap/spread/poster/7fea620190807121432220854.jpg', '82734', 'image/jpeg', 1, 1565151272, 1, 2),
+(522, 'd653920190807121432702847.jpg', '/uploads/wap/spread/poster/d653920190807121432702847.jpg', '/uploads/wap/spread/poster/d653920190807121432702847.jpg', '55096', 'image/jpeg', 1, 1565151272, 1, 2),
+(523, '6925f20190807121432490492.jpg', '/uploads/wap/spread/poster/6925f20190807121432490492.jpg', '/uploads/wap/spread/poster/6925f20190807121432490492.jpg', '75745', 'image/jpeg', 1, 1565151272, 1, 2),
+(524, '6d0ee3bb80da7ab64c3a336daaf57d6d.jpeg', '/uploads/store/comment/20190807/6d0ee3bb80da7ab64c3a336daaf57d6d.jpeg', '/./uploads/store/comment/20190807/s_6d0ee3bb80da7ab64c3a336daaf57d6d.jpeg', '46130', 'image/jpeg', 1, 1565151287, 1, 2),
+(525, 'fb105d5f0de947abcf70624ad8cab385.jpg', '/uploads/store/comment/20190807/fb105d5f0de947abcf70624ad8cab385.jpg', '/./uploads/store/comment/20190807/s_fb105d5f0de947abcf70624ad8cab385.jpg', '247992', 'image/jpeg', 1, 1565151742, 1, 2),
+(526, '484_0_user_wap.jpg', '/uploads/qrcode/484_0_user_wap.jpg', '/uploads/qrcode/484_0_user_wap.jpg', '507', 'image/jpeg', 1, 1565151756, 1, 2),
+(527, 'a7f5920190807122236428668.jpg', '/uploads/wap/spread/poster/a7f5920190807122236428668.jpg', '/uploads/wap/spread/poster/a7f5920190807122236428668.jpg', '83210', 'image/jpeg', 1, 1565151756, 1, 2),
+(528, 'ec5aa20190807122236455554.jpg', '/uploads/wap/spread/poster/ec5aa20190807122236455554.jpg', '/uploads/wap/spread/poster/ec5aa20190807122236455554.jpg', '55569', 'image/jpeg', 1, 1565151756, 1, 2),
+(529, 'b4d2220190807122236696235.jpg', '/uploads/wap/spread/poster/b4d2220190807122236696235.jpg', '/uploads/wap/spread/poster/b4d2220190807122236696235.jpg', '76249', 'image/jpeg', 1, 1565151756, 1, 2),
+(530, '603008c2d343faaea1a424eaff3a2368.jpg', '/uploads/store/comment/20190807/603008c2d343faaea1a424eaff3a2368.jpg', '/./uploads/store/comment/20190807/s_603008c2d343faaea1a424eaff3a2368.jpg', '10308', 'image/jpeg', 1, 1565152540, 1, 2),
+(531, '489_0_user_wap.jpg', '/uploads/qrcode/489_0_user_wap.jpg', '/uploads/qrcode/489_0_user_wap.jpg', '521', 'image/jpeg', 1, 1565153106, 1, 2),
+(532, '4d6da20190807124506469176.jpg', '/uploads/wap/spread/poster/4d6da20190807124506469176.jpg', '/uploads/wap/spread/poster/4d6da20190807124506469176.jpg', '82235', 'image/jpeg', 1, 1565153106, 1, 2),
+(533, '2866720190807124506465311.jpg', '/uploads/wap/spread/poster/2866720190807124506465311.jpg', '/uploads/wap/spread/poster/2866720190807124506465311.jpg', '54602', 'image/jpeg', 1, 1565153106, 1, 2),
+(534, 'f169b20190807124506305816.jpg', '/uploads/wap/spread/poster/f169b20190807124506305816.jpg', '/uploads/wap/spread/poster/f169b20190807124506305816.jpg', '75253', 'image/jpeg', 1, 1565153106, 1, 2),
+(535, '3_485_0_bargain_share_wap.jpg', '/uploads/qrcode/3_485_0_bargain_share_wap.jpg', '/uploads/qrcode/3_485_0_bargain_share_wap.jpg', '822', 'image/jpeg', 1, 1565153238, 1, 2),
+(536, '1086720190807124718353676.jpg', '/uploads/wap/activity/bargain/poster/1086720190807124718353676.jpg', '/uploads/wap/activity/bargain/poster/1086720190807124718353676.jpg', '50400', 'image/jpeg', 1, 1565153238, 1, 2),
+(537, '20_425_0_pink_share_wap.jpg', '/uploads/qrcode/20_425_0_pink_share_wap.jpg', '/uploads/qrcode/20_425_0_pink_share_wap.jpg', '697', 'image/jpeg', 1, 1565153943, 1, 2),
+(538, '0b24d20190807125903672279.jpg', '/uploads/wap/activity/pink/poster/0b24d20190807125903672279.jpg', '/uploads/wap/activity/pink/poster/0b24d20190807125903672279.jpg', '53119', 'image/jpeg', 1, 1565153943, 1, 2),
+(539, 'b85d620190807125915869899.jpg', '/uploads/wap/activity/pink/poster/b85d620190807125915869899.jpg', '/uploads/wap/activity/pink/poster/b85d620190807125915869899.jpg', '53119', 'image/jpeg', 1, 1565153955, 1, 2),
+(540, '66e15da59d29c937949dfbdd07a2ff08.jpeg', '/uploads/store/comment/20190807/66e15da59d29c937949dfbdd07a2ff08.jpeg', '/./uploads/store/comment/20190807/s_66e15da59d29c937949dfbdd07a2ff08.jpeg', '102985', 'image/jpeg', 1, 1565154546, 1, 2),
+(541, '98dce20190807131333747386.jpg', '/uploads/wap/spread/poster/98dce20190807131333747386.jpg', '/uploads/wap/spread/poster/98dce20190807131333747386.jpg', '82140', 'image/jpeg', 1, 1565154813, 1, 2),
+(542, '4669d20190807131333938842.jpg', '/uploads/wap/spread/poster/4669d20190807131333938842.jpg', '/uploads/wap/spread/poster/4669d20190807131333938842.jpg', '54494', 'image/jpeg', 1, 1565154813, 1, 2),
+(543, '988f920190807131333720360.jpg', '/uploads/wap/spread/poster/988f920190807131333720360.jpg', '/uploads/wap/spread/poster/988f920190807131333720360.jpg', '75160', 'image/jpeg', 1, 1565154813, 1, 2),
+(544, 'a0b59537f16e3b4c9d145d2c062a81c4.jpg', '/uploads/store/comment/20190807/a0b59537f16e3b4c9d145d2c062a81c4.jpg', '/./uploads/store/comment/20190807/s_a0b59537f16e3b4c9d145d2c062a81c4.jpg', '200789', 'image/jpeg', 1, 1565154844, 1, 2),
+(545, 'c207320190807133116168378.jpg', '/uploads/wap/activity/pink/poster/c207320190807133116168378.jpg', '/uploads/wap/activity/pink/poster/c207320190807133116168378.jpg', '53156', 'image/jpeg', 1, 1565155876, 1, 2),
+(546, '723adbdd4e49a0f9394dfc700ab5dba3.png', '/uploads/attach/2019/08/20190807/723adbdd4e49a0f9394dfc700ab5dba3.png', '/./uploads/attach/2019/08/20190807/s_723adbdd4e49a0f9394dfc700ab5dba3.png', '7127', 'image/png', 24, 1565158498, 1, 1),
+(547, '3ccb0466eb40b5971dc09d5ec7098392.jpg', '/uploads/store/comment/20190807/3ccb0466eb40b5971dc09d5ec7098392.jpg', '/./uploads/store/comment/20190807/s_3ccb0466eb40b5971dc09d5ec7098392.jpg', '114868', 'image/jpeg', 1, 1565159187, 1, 2),
+(548, '5_502_0_bargain_share_wap.jpg', '/uploads/qrcode/5_502_0_bargain_share_wap.jpg', '/uploads/qrcode/5_502_0_bargain_share_wap.jpg', '802', 'image/jpeg', 1, 1565162145, 1, 2),
+(549, 'd2a2720190807151545388721.jpg', '/uploads/wap/activity/bargain/poster/d2a2720190807151545388721.jpg', '/uploads/wap/activity/bargain/poster/d2a2720190807151545388721.jpg', '52739', 'image/jpeg', 1, 1565162145, 1, 2),
+(550, '3_499_0_bargain_share_wap.jpg', '/uploads/qrcode/3_499_0_bargain_share_wap.jpg', '/uploads/qrcode/3_499_0_bargain_share_wap.jpg', '808', 'image/jpeg', 1, 1565163122, 1, 2),
+(551, '92fb020190807153202388226.jpg', '/uploads/wap/activity/bargain/poster/92fb020190807153202388226.jpg', '/uploads/wap/activity/bargain/poster/92fb020190807153202388226.jpg', '50204', 'image/jpeg', 1, 1565163122, 1, 2),
+(552, '12_seckill_detail_wap.jpg', '/uploads/qrcode/12_seckill_detail_wap.jpg', '/uploads/qrcode/12_seckill_detail_wap.jpg', '706', 'image/jpeg', 1, 1565165529, 1, 2),
+(553, '3_504_0_bargain_share_wap.jpg', '/uploads/qrcode/3_504_0_bargain_share_wap.jpg', '/uploads/qrcode/3_504_0_bargain_share_wap.jpg', '804', 'image/jpeg', 1, 1565166918, 1, 2),
+(554, '77b9120190807163518789651.jpg', '/uploads/wap/activity/bargain/poster/77b9120190807163518789651.jpg', '/uploads/wap/activity/bargain/poster/77b9120190807163518789651.jpg', '50631', 'image/jpeg', 1, 1565166918, 1, 2),
+(555, '99a4020190807163535453510.jpg', '/uploads/wap/activity/bargain/poster/99a4020190807163535453510.jpg', '/uploads/wap/activity/bargain/poster/99a4020190807163535453510.jpg', '50631', 'image/jpeg', 1, 1565166935, 1, 2),
+(556, '1fb3320190807163549217410.jpg', '/uploads/wap/activity/bargain/poster/1fb3320190807163549217410.jpg', '/uploads/wap/activity/bargain/poster/1fb3320190807163549217410.jpg', '50631', 'image/jpeg', 1, 1565166949, 1, 2),
+(557, '9e74020190807170721119438.jpg', '/uploads/wap/activity/bargain/poster/9e74020190807170721119438.jpg', '/uploads/wap/activity/bargain/poster/9e74020190807170721119438.jpg', '50223', 'image/jpeg', 1, 1565168841, 1, 2),
+(558, '566f020190807170732986724.jpg', '/uploads/wap/activity/bargain/poster/566f020190807170732986724.jpg', '/uploads/wap/activity/bargain/poster/566f020190807170732986724.jpg', '50223', 'image/jpeg', 1, 1565168852, 1, 2),
+(559, '5_504_0_bargain_share_wap.jpg', '/uploads/qrcode/5_504_0_bargain_share_wap.jpg', '/uploads/qrcode/5_504_0_bargain_share_wap.jpg', '806', 'image/jpeg', 1, 1565169010, 1, 2),
+(560, '68a6420190807171011633892.jpg', '/uploads/wap/activity/bargain/poster/68a6420190807171011633892.jpg', '/uploads/wap/activity/bargain/poster/68a6420190807171011633892.jpg', '53730', 'image/jpeg', 1, 1565169011, 1, 2),
+(561, '9c16f20190807171019633097.jpg', '/uploads/wap/activity/bargain/poster/9c16f20190807171019633097.jpg', '/uploads/wap/activity/bargain/poster/9c16f20190807171019633097.jpg', '50223', 'image/jpeg', 1, 1565169019, 1, 2),
+(562, 'f0dd420190807175709429001.jpg', '/uploads/wap/activity/bargain/poster/f0dd420190807175709429001.jpg', '/uploads/wap/activity/bargain/poster/f0dd420190807175709429001.jpg', '50223', 'image/jpeg', 1, 1565171829, 1, 2),
+(563, '9e95220190807180456196926.jpg', '/uploads/wap/spread/poster/9e95220190807180456196926.jpg', '/uploads/wap/spread/poster/9e95220190807180456196926.jpg', '82267', 'image/jpeg', 1, 1565172296, 1, 2),
+(564, '2122c20190807180457210530.jpg', '/uploads/wap/spread/poster/2122c20190807180457210530.jpg', '/uploads/wap/spread/poster/2122c20190807180457210530.jpg', '54643', 'image/jpeg', 1, 1565172297, 1, 2),
+(565, '366ce2019080718045776914.jpg', '/uploads/wap/spread/poster/366ce2019080718045776914.jpg', '/uploads/wap/spread/poster/366ce2019080718045776914.jpg', '75275', 'image/jpeg', 1, 1565172297, 1, 2),
+(566, '0680020190807184757573025.jpg', '/uploads/wap/activity/bargain/poster/0680020190807184757573025.jpg', '/uploads/wap/activity/bargain/poster/0680020190807184757573025.jpg', '53730', 'image/jpeg', 1, 1565174877, 1, 2),
+(567, '68ae74deaa577114653c5d98e9765629.jpeg', '/uploads/store/comment/20190807/68ae74deaa577114653c5d98e9765629.jpeg', '/./uploads/store/comment/20190807/s_68ae74deaa577114653c5d98e9765629.jpeg', '4693', 'image/jpeg', 1, 1565174940, 1, 2),
+(568, '455a99f8578c7ad694564e1b63c185d6.jpeg', '/uploads/store/comment/20190807/455a99f8578c7ad694564e1b63c185d6.jpeg', '/./uploads/store/comment/20190807/s_455a99f8578c7ad694564e1b63c185d6.jpeg', '2009', 'image/jpeg', 1, 1565174958, 1, 2),
+(569, '3_515_0_bargain_share_wap.jpg', '/uploads/qrcode/3_515_0_bargain_share_wap.jpg', '/uploads/qrcode/3_515_0_bargain_share_wap.jpg', '807', 'image/jpeg', 1, 1565186981, 1, 2),
+(570, 'db60b20190807220941616603.jpg', '/uploads/wap/activity/bargain/poster/db60b20190807220941616603.jpg', '/uploads/wap/activity/bargain/poster/db60b20190807220941616603.jpg', '50643', 'image/jpeg', 1, 1565186981, 1, 2),
+(571, 'deee920190807220958295849.jpg', '/uploads/wap/activity/bargain/poster/deee920190807220958295849.jpg', '/uploads/wap/activity/bargain/poster/deee920190807220958295849.jpg', '50643', 'image/jpeg', 1, 1565186998, 1, 2),
+(572, '22e4ebc8625fd25755e6e7f905183cfa.jpg', '/uploads/store/comment/20190808/22e4ebc8625fd25755e6e7f905183cfa.jpg', '/./uploads/store/comment/20190808/s_22e4ebc8625fd25755e6e7f905183cfa.jpg', '5195', 'image/jpeg', 1, 1565225425, 1, 2),
+(573, '3_product_detail_252_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_252_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_252_is_promoter_0.wap.jpg', '601', 'image/jpeg', 1, 1565225770, 1, 2),
+(574, '3_546_0_bargain_share_wap.jpg', '/uploads/qrcode/3_546_0_bargain_share_wap.jpg', '/uploads/qrcode/3_546_0_bargain_share_wap.jpg', '808', 'image/jpeg', 1, 1565230290, 1, 2),
+(575, '13f9820190808101130974883.jpg', '/uploads/wap/activity/bargain/poster/13f9820190808101130974883.jpg', '/uploads/wap/activity/bargain/poster/13f9820190808101130974883.jpg', '50238', 'image/jpeg', 1, 1565230290, 1, 2),
+(576, 'e467020190808101140533702.jpg', '/uploads/wap/activity/bargain/poster/e467020190808101140533702.jpg', '/uploads/wap/activity/bargain/poster/e467020190808101140533702.jpg', '50238', 'image/jpeg', 1, 1565230300, 1, 2),
+(577, 'a6e4f20190808101151187086.jpg', '/uploads/wap/activity/bargain/poster/a6e4f20190808101151187086.jpg', '/uploads/wap/activity/bargain/poster/a6e4f20190808101151187086.jpg', '50238', 'image/jpeg', 1, 1565230311, 1, 2),
+(578, '3_548_0_bargain_share_wap.jpg', '/uploads/qrcode/3_548_0_bargain_share_wap.jpg', '/uploads/qrcode/3_548_0_bargain_share_wap.jpg', '811', 'image/jpeg', 1, 1565230501, 1, 2),
+(579, 'c75e120190808101501179707.jpg', '/uploads/wap/activity/bargain/poster/c75e120190808101501179707.jpg', '/uploads/wap/activity/bargain/poster/c75e120190808101501179707.jpg', '50531', 'image/jpeg', 1, 1565230501, 1, 2),
+(580, '7d23242e4964754eca55e8736f3d8eb1.png', '/uploads/store/comment/20190808/7d23242e4964754eca55e8736f3d8eb1.png', '/./uploads/store/comment/20190808/s_7d23242e4964754eca55e8736f3d8eb1.png', '7127', 'image/png', 1, 1565234020, 1, 2),
+(581, '3_563_0_bargain_share_wap.jpg', '/uploads/qrcode/3_563_0_bargain_share_wap.jpg', '/uploads/qrcode/3_563_0_bargain_share_wap.jpg', '811', 'image/jpeg', 1, 1565237610, 1, 2),
+(582, '146f720190808121330814896.jpg', '/uploads/wap/activity/bargain/poster/146f720190808121330814896.jpg', '/uploads/wap/activity/bargain/poster/146f720190808121330814896.jpg', '50724', 'image/jpeg', 1, 1565237610, 1, 2),
+(583, '3_566_0_bargain_share_wap.jpg', '/uploads/qrcode/3_566_0_bargain_share_wap.jpg', '/uploads/qrcode/3_566_0_bargain_share_wap.jpg', '799', 'image/jpeg', 1, 1565243001, 1, 2),
+(584, '8216120190808134321426521.jpg', '/uploads/wap/activity/bargain/poster/8216120190808134321426521.jpg', '/uploads/wap/activity/bargain/poster/8216120190808134321426521.jpg', '50025', 'image/jpeg', 1, 1565243001, 1, 2),
+(585, 'ccc72a0d04bf04adaacbcafe71839856.png', '/uploads/store/comment/20190808/ccc72a0d04bf04adaacbcafe71839856.png', '/./uploads/store/comment/20190808/s_ccc72a0d04bf04adaacbcafe71839856.png', '955925', 'image/png', 1, 1565245737, 1, 2),
+(586, '579_1_user_wap.jpg', '/uploads/qrcode/579_1_user_wap.jpg', '/uploads/qrcode/579_1_user_wap.jpg', '514', 'image/jpeg', 1, 1565246746, 1, 2),
+(587, '9473920190808144546960552.jpg', '/uploads/wap/spread/poster/9473920190808144546960552.jpg', '/uploads/wap/spread/poster/9473920190808144546960552.jpg', '82630', 'image/jpeg', 1, 1565246746, 1, 2),
+(588, 'ad8ed20190808144546944061.jpg', '/uploads/wap/spread/poster/ad8ed20190808144546944061.jpg', '/uploads/wap/spread/poster/ad8ed20190808144546944061.jpg', '54999', 'image/jpeg', 1, 1565246746, 1, 2),
+(589, 'bb16620190808144546536747.jpg', '/uploads/wap/spread/poster/bb16620190808144546536747.jpg', '/uploads/wap/spread/poster/bb16620190808144546536747.jpg', '75643', 'image/jpeg', 1, 1565246746, 1, 2),
+(590, 'b65dd37fc436b2e36d6e33f3df40199d.png', '/uploads/store/comment/20190808/b65dd37fc436b2e36d6e33f3df40199d.png', '/./uploads/store/comment/20190808/s_b65dd37fc436b2e36d6e33f3df40199d.png', '2402', 'image/png', 1, 1565247248, 1, 2),
+(591, '3_581_0_bargain_share_wap.jpg', '/uploads/qrcode/3_581_0_bargain_share_wap.jpg', '/uploads/qrcode/3_581_0_bargain_share_wap.jpg', '810', 'image/jpeg', 1, 1565247527, 1, 2),
+(592, '4b00920190808145847432060.jpg', '/uploads/wap/activity/bargain/poster/4b00920190808145847432060.jpg', '/uploads/wap/activity/bargain/poster/4b00920190808145847432060.jpg', '49639', 'image/jpeg', 1, 1565247527, 1, 2),
+(593, '2_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/2_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/2_product_detail_168_is_promoter_1.wap.jpg', '599', 'image/jpeg', 1, 1565249347, 1, 2),
+(594, '9_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/9_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/9_product_detail_168_is_promoter_1.wap.jpg', '608', 'image/jpeg', 1, 1565249380, 1, 2),
+(595, '077f98b643e5ddf0bc67766790d24615.jpg', '/uploads/store/comment/20190808/077f98b643e5ddf0bc67766790d24615.jpg', '/./uploads/store/comment/20190808/s_077f98b643e5ddf0bc67766790d24615.jpg', '63749', 'image/jpeg', 1, 1565250443, 1, 2),
+(596, '7_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/7_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/7_product_detail_168_is_promoter_1.wap.jpg', '603', 'image/jpeg', 1, 1565250489, 1, 2),
+(597, '3cb3b7b5a0e12d838b84a6e3d0fb3105.jpg', '/uploads/store/comment/20190808/3cb3b7b5a0e12d838b84a6e3d0fb3105.jpg', '/./uploads/store/comment/20190808/s_3cb3b7b5a0e12d838b84a6e3d0fb3105.jpg', '100759', 'image/jpeg', 1, 1565250606, 1, 2),
+(598, '11_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/11_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/11_product_detail_168_is_promoter_1.wap.jpg', '593', 'image/jpeg', 1, 1565250677, 1, 2),
+(599, 'c25c9c347246dce45f83e9daa38753e4.jpeg', '/uploads/store/comment/20190808/c25c9c347246dce45f83e9daa38753e4.jpeg', '/./uploads/store/comment/20190808/s_c25c9c347246dce45f83e9daa38753e4.jpeg', '102985', 'image/jpeg', 1, 1565255407, 1, 2),
+(600, '602_1_user_wap.jpg', '/uploads/qrcode/602_1_user_wap.jpg', '/uploads/qrcode/602_1_user_wap.jpg', '511', 'image/jpeg', 1, 1565255657, 1, 2),
+(601, '9950320190808171417419761.jpg', '/uploads/wap/spread/poster/9950320190808171417419761.jpg', '/uploads/wap/spread/poster/9950320190808171417419761.jpg', '82914', 'image/jpeg', 1, 1565255657, 1, 2),
+(602, 'f516d20190808171417527425.jpg', '/uploads/wap/spread/poster/f516d20190808171417527425.jpg', '/uploads/wap/spread/poster/f516d20190808171417527425.jpg', '55278', 'image/jpeg', 1, 1565255657, 1, 2),
+(603, 'b02f020190808171417302334.jpg', '/uploads/wap/spread/poster/b02f020190808171417302334.jpg', '/uploads/wap/spread/poster/b02f020190808171417302334.jpg', '75940', 'image/jpeg', 1, 1565255657, 1, 2),
+(604, '2bee3a5dc9f19820a3b14e684a1d5360.jpeg', '/uploads/store/comment/20190808/2bee3a5dc9f19820a3b14e684a1d5360.jpeg', '/./uploads/store/comment/20190808/s_2bee3a5dc9f19820a3b14e684a1d5360.jpeg', '102985', 'image/jpeg', 1, 1565255711, 1, 2),
+(605, '9_product_detail_608_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_608_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_608_is_promoter_0.wap.jpg', '593', 'image/jpeg', 1, 1565256303, 1, 2),
+(606, '3_product_detail_601_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_601_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_601_is_promoter_0.wap.jpg', '605', 'image/jpeg', 1, 1565256873, 1, 2),
+(607, '87a240841283cb614f3ba308fd299866.png', '/uploads/attach/2019/08/20190808/87a240841283cb614f3ba308fd299866.png', '/./uploads/attach/2019/08/20190808/s_87a240841283cb614f3ba308fd299866.png', '1177', 'image/png', 4, 1565259172, 1, 1),
+(608, '9_product_detail_619_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_619_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_619_is_promoter_0.wap.jpg', '593', 'image/jpeg', 1, 1565259181, 1, 2),
+(609, '11_product_detail_608_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_608_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_608_is_promoter_0.wap.jpg', '594', 'image/jpeg', 1, 1565261723, 1, 2),
+(610, '3_636_0_bargain_share_wap.jpg', '/uploads/qrcode/3_636_0_bargain_share_wap.jpg', '/uploads/qrcode/3_636_0_bargain_share_wap.jpg', '792', 'image/jpeg', 1, 1565268994, 1, 2),
+(611, 'b874720190808205634605586.jpg', '/uploads/wap/activity/bargain/poster/b874720190808205634605586.jpg', '/uploads/wap/activity/bargain/poster/b874720190808205634605586.jpg', '50285', 'image/jpeg', 1, 1565268994, 1, 2),
+(612, '3_625_0_bargain_share_wap.jpg', '/uploads/qrcode/3_625_0_bargain_share_wap.jpg', '/uploads/qrcode/3_625_0_bargain_share_wap.jpg', '804', 'image/jpeg', 1, 1565279470, 1, 2),
+(613, 'd714d20190808235110884688.jpg', '/uploads/wap/activity/bargain/poster/d714d20190808235110884688.jpg', '/uploads/wap/activity/bargain/poster/d714d20190808235110884688.jpg', '50056', 'image/jpeg', 1, 1565279470, 1, 2),
+(614, 'b34c9cddc56b8bc7e22334485a2655c8.png', '/uploads/store/comment/20190808/b34c9cddc56b8bc7e22334485a2655c8.png', '/./uploads/store/comment/20190808/s_b34c9cddc56b8bc7e22334485a2655c8.png', '536325', 'image/png', 1, 1565279560, 1, 2),
+(615, '6801781ff4403bdbb6764f4182394729.png', '/uploads/attach/2019/08/20190809/6801781ff4403bdbb6764f4182394729.png', '/./uploads/attach/2019/08/20190809/s_6801781ff4403bdbb6764f4182394729.png', '14174', 'image/png', 32, 1565311043, 1, 1),
+(616, '3_product_detail_581_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_581_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_581_is_promoter_0.wap.jpg', '594', 'image/jpeg', 1, 1565312928, 1, 2),
+(617, '11_seckill_detail_wap.jpg', '/uploads/qrcode/11_seckill_detail_wap.jpg', '/uploads/qrcode/11_seckill_detail_wap.jpg', '702', 'image/jpeg', 1, 1565314985, 1, 2),
+(618, '7_product_detail_607_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_607_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_607_is_promoter_0.wap.jpg', '612', 'image/jpeg', 1, 1565316804, 1, 2),
+(619, '959462d373393a327ede87e51680c07e.jpg', '/uploads/store/comment/20190809/959462d373393a327ede87e51680c07e.jpg', '/./uploads/store/comment/20190809/s_959462d373393a327ede87e51680c07e.jpg', '13877', 'image/jpeg', 1, 1565317285, 1, 2),
+(620, '7ba5e7e9bcd1ed480fdd432b49a3161a.gif', '/uploads/attach/2019/08/20190809/7ba5e7e9bcd1ed480fdd432b49a3161a.gif', '/./uploads/attach/2019/08/20190809/s_7ba5e7e9bcd1ed480fdd432b49a3161a.gif', '105770', 'image/gif', 5, 1565317737, 1, 1),
+(621, '7_product_detail_672_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_672_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_672_is_promoter_0.wap.jpg', '609', 'image/jpeg', 1, 1565318539, 1, 2),
+(622, '3_product_detail_607_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_607_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_607_is_promoter_0.wap.jpg', '605', 'image/jpeg', 1, 1565318624, 1, 2),
+(623, '9_product_detail_607_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_607_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_607_is_promoter_0.wap.jpg', '606', 'image/jpeg', 1, 1565318720, 1, 2),
+(624, '11_product_detail_607_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_607_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_607_is_promoter_0.wap.jpg', '602', 'image/jpeg', 1, 1565318786, 1, 2),
+(625, '11_product_detail_672_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_672_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_672_is_promoter_0.wap.jpg', '589', 'image/jpeg', 1, 1565318805, 1, 2),
+(626, '2_product_detail_607_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_607_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_607_is_promoter_0.wap.jpg', '603', 'image/jpeg', 1, 1565319659, 1, 2),
+(627, '52bfadd8769a6d359c144613b2000954.jpg', '/uploads/store/comment/20190809/52bfadd8769a6d359c144613b2000954.jpg', '/./uploads/store/comment/20190809/s_52bfadd8769a6d359c144613b2000954.jpg', '22640', 'image/jpeg', 1, 1565319929, 1, 2),
+(628, '26_607_0_pink_share_wap.jpg', '/uploads/qrcode/26_607_0_pink_share_wap.jpg', '/uploads/qrcode/26_607_0_pink_share_wap.jpg', '703', 'image/jpeg', 1, 1565320222, 1, 2),
+(629, '4a71e20190809111022357555.jpg', '/uploads/wap/activity/pink/poster/4a71e20190809111022357555.jpg', '/uploads/wap/activity/pink/poster/4a71e20190809111022357555.jpg', '49901', 'image/jpeg', 1, 1565320222, 1, 2),
+(630, '8_product_detail_607_is_promoter_0.wap.jpg', '/uploads/qrcode/8_product_detail_607_is_promoter_0.wap.jpg', '/uploads/qrcode/8_product_detail_607_is_promoter_0.wap.jpg', '597', 'image/jpeg', 1, 1565321381, 1, 2),
+(631, '11_product_detail_697_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_697_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_697_is_promoter_0.wap.jpg', '596', 'image/jpeg', 1, 1565323200, 1, 2),
+(632, '5_637_0_bargain_share_wap.jpg', '/uploads/qrcode/5_637_0_bargain_share_wap.jpg', '/uploads/qrcode/5_637_0_bargain_share_wap.jpg', '797', 'image/jpeg', 1, 1565325822, 1, 2),
+(633, 'a96b620190809124342745231.jpg', '/uploads/wap/activity/bargain/poster/a96b620190809124342745231.jpg', '/uploads/wap/activity/bargain/poster/a96b620190809124342745231.jpg', '53265', 'image/jpeg', 1, 1565325822, 1, 2),
+(634, '3_559_0_bargain_share_wap.jpg', '/uploads/qrcode/3_559_0_bargain_share_wap.jpg', '/uploads/qrcode/3_559_0_bargain_share_wap.jpg', '821', 'image/jpeg', 1, 1565329525, 1, 2),
+(635, 'eaa5220190809134525129638.jpg', '/uploads/wap/activity/bargain/poster/eaa5220190809134525129638.jpg', '/uploads/wap/activity/bargain/poster/eaa5220190809134525129638.jpg', '50413', 'image/jpeg', 1, 1565329525, 1, 2),
+(636, '559_1_user_wap.jpg', '/uploads/qrcode/559_1_user_wap.jpg', '/uploads/qrcode/559_1_user_wap.jpg', '507', 'image/jpeg', 1, 1565329886, 1, 2),
+(637, '8e52320190809135126411578.jpg', '/uploads/wap/spread/poster/8e52320190809135126411578.jpg', '/uploads/wap/spread/poster/8e52320190809135126411578.jpg', '82594', 'image/jpeg', 1, 1565329886, 1, 2),
+(638, '7736920190809135126720011.jpg', '/uploads/wap/spread/poster/7736920190809135126720011.jpg', '/uploads/wap/spread/poster/7736920190809135126720011.jpg', '54967', 'image/jpeg', 1, 1565329886, 1, 2),
+(639, '68fc2201908091351267899.jpg', '/uploads/wap/spread/poster/68fc2201908091351267899.jpg', '/uploads/wap/spread/poster/68fc2201908091351267899.jpg', '75624', 'image/jpeg', 1, 1565329886, 1, 2),
+(640, '8d33620190809135326936003.jpg', '/uploads/wap/spread/poster/8d33620190809135326936003.jpg', '/uploads/wap/spread/poster/8d33620190809135326936003.jpg', '82594', 'image/jpeg', 1, 1565330006, 1, 2),
+(641, '5b8e420190809135326273294.jpg', '/uploads/wap/spread/poster/5b8e420190809135326273294.jpg', '/uploads/wap/spread/poster/5b8e420190809135326273294.jpg', '54967', 'image/jpeg', 1, 1565330006, 1, 2),
+(642, '14e422019080913532761875.jpg', '/uploads/wap/spread/poster/14e422019080913532761875.jpg', '/uploads/wap/spread/poster/14e422019080913532761875.jpg', '75624', 'image/jpeg', 1, 1565330007, 1, 2),
+(643, '3_712_0_bargain_share_wap.jpg', '/uploads/qrcode/3_712_0_bargain_share_wap.jpg', '/uploads/qrcode/3_712_0_bargain_share_wap.jpg', '808', 'image/jpeg', 1, 1565331265, 1, 2),
+(644, 'ba20320190809141425960268.jpg', '/uploads/wap/activity/bargain/poster/ba20320190809141425960268.jpg', '/uploads/wap/activity/bargain/poster/ba20320190809141425960268.jpg', '50710', 'image/jpeg', 1, 1565331265, 1, 2),
+(645, '712_0_user_wap.jpg', '/uploads/qrcode/712_0_user_wap.jpg', '/uploads/qrcode/712_0_user_wap.jpg', '505', 'image/jpeg', 1, 1565331519, 1, 2),
+(646, 'bdd8820190809141841250890.jpg', '/uploads/wap/spread/poster/bdd8820190809141841250890.jpg', '/uploads/wap/spread/poster/bdd8820190809141841250890.jpg', '82343', 'image/jpeg', 1, 1565331521, 1, 2),
+(647, 'f9beb20190809141843107330.jpg', '/uploads/wap/spread/poster/f9beb20190809141843107330.jpg', '/uploads/wap/spread/poster/f9beb20190809141843107330.jpg', '54694', 'image/jpeg', 1, 1565331523, 1, 2),
+(648, 'd575620190809141845783047.jpg', '/uploads/wap/spread/poster/d575620190809141845783047.jpg', '/uploads/wap/spread/poster/d575620190809141845783047.jpg', '75355', 'image/jpeg', 1, 1565331525, 1, 2),
+(649, 'f1e2b20190809141850920888.jpg', '/uploads/wap/spread/poster/f1e2b20190809141850920888.jpg', '/uploads/wap/spread/poster/f1e2b20190809141850920888.jpg', '82343', 'image/jpeg', 1, 1565331530, 1, 2),
+(650, 'ad82120190809141850893909.jpg', '/uploads/wap/spread/poster/ad82120190809141850893909.jpg', '/uploads/wap/spread/poster/ad82120190809141850893909.jpg', '54694', 'image/jpeg', 1, 1565331530, 1, 2),
+(651, '1cfea20190809141850542021.jpg', '/uploads/wap/spread/poster/1cfea20190809141850542021.jpg', '/uploads/wap/spread/poster/1cfea20190809141850542021.jpg', '75355', 'image/jpeg', 1, 1565331530, 1, 2),
+(652, 'f81de20190809141926185054.jpg', '/uploads/wap/spread/poster/f81de20190809141926185054.jpg', '/uploads/wap/spread/poster/f81de20190809141926185054.jpg', '82343', 'image/jpeg', 1, 1565331566, 1, 2),
+(653, '5dbc820190809141926340540.jpg', '/uploads/wap/spread/poster/5dbc820190809141926340540.jpg', '/uploads/wap/spread/poster/5dbc820190809141926340540.jpg', '54694', 'image/jpeg', 1, 1565331566, 1, 2),
+(654, 'c0e8520190809141926611140.jpg', '/uploads/wap/spread/poster/c0e8520190809141926611140.jpg', '/uploads/wap/spread/poster/c0e8520190809141926611140.jpg', '75355', 'image/jpeg', 1, 1565331566, 1, 2),
+(655, 'cedab3e1e432f673a25dfbe73ed3fe03.jpg', '/uploads/store/comment/20190809/cedab3e1e432f673a25dfbe73ed3fe03.jpg', '/./uploads/store/comment/20190809/s_cedab3e1e432f673a25dfbe73ed3fe03.jpg', '30209', 'image/jpeg', 1, 1565331950, 1, 2),
+(656, '9_product_detail_697_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_697_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_697_is_promoter_0.wap.jpg', '605', 'image/jpeg', 1, 1565333208, 1, 2),
+(657, '11_product_detail_726_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_726_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_726_is_promoter_0.wap.jpg', '592', 'image/jpeg', 1, 1565338275, 1, 2),
+(658, '9_product_detail_728_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_728_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_728_is_promoter_0.wap.jpg', '610', 'image/jpeg', 1, 1565338277, 1, 2),
+(659, '3_product_detail_726_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_726_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_726_is_promoter_0.wap.jpg', '599', 'image/jpeg', 1, 1565338395, 1, 2),
+(660, '44f6820190809163849115573.jpg', '/uploads/wap/spread/poster/44f6820190809163849115573.jpg', '/uploads/wap/spread/poster/44f6820190809163849115573.jpg', '82594', 'image/jpeg', 1, 1565339929, 1, 2),
+(661, 'be16d20190809163849372602.jpg', '/uploads/wap/spread/poster/be16d20190809163849372602.jpg', '/uploads/wap/spread/poster/be16d20190809163849372602.jpg', '54967', 'image/jpeg', 1, 1565339929, 1, 2),
+(662, '17d1820190809163849853914.jpg', '/uploads/wap/spread/poster/17d1820190809163849853914.jpg', '/uploads/wap/spread/poster/17d1820190809163849853914.jpg', '75624', 'image/jpeg', 1, 1565339929, 1, 2),
+(663, '9_product_detail_737_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_737_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_737_is_promoter_0.wap.jpg', '612', 'image/jpeg', 1, 1565340217, 1, 2),
+(664, '738_1_user_wap.jpg', '/uploads/qrcode/738_1_user_wap.jpg', '/uploads/qrcode/738_1_user_wap.jpg', '509', 'image/jpeg', 1, 1565340430, 1, 2),
+(665, 'c5c1c20190809164710245338.jpg', '/uploads/wap/spread/poster/c5c1c20190809164710245338.jpg', '/uploads/wap/spread/poster/c5c1c20190809164710245338.jpg', '82448', 'image/jpeg', 1, 1565340430, 1, 2),
+(666, '2436820190809164710970121.jpg', '/uploads/wap/spread/poster/2436820190809164710970121.jpg', '/uploads/wap/spread/poster/2436820190809164710970121.jpg', '54817', 'image/jpeg', 1, 1565340430, 1, 2),
+(667, 'cc58f20190809164710336065.jpg', '/uploads/wap/spread/poster/cc58f20190809164710336065.jpg', '/uploads/wap/spread/poster/cc58f20190809164710336065.jpg', '75473', 'image/jpeg', 1, 1565340430, 1, 2),
+(668, 'fe670900d78c607e843d8da4ae39e99e.jpg', '/uploads/store/comment/20190809/fe670900d78c607e843d8da4ae39e99e.jpg', '/./uploads/store/comment/20190809/s_fe670900d78c607e843d8da4ae39e99e.jpg', '57187', 'image/jpeg', 1, 1565341017, 1, 2),
+(669, '7_product_detail_743_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_743_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_743_is_promoter_0.wap.jpg', '605', 'image/jpeg', 1, 1565342706, 1, 2),
+(670, '11_product_detail_743_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_743_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_743_is_promoter_0.wap.jpg', '599', 'image/jpeg', 1, 1565342710, 1, 2),
+(671, '6_168_1_bargain_share_routine.jpg', '/uploads/routine/activity/bargain/code/6_168_1_bargain_share_routine.jpg', '/uploads/routine/activity/bargain/code/6_168_1_bargain_share_routine.jpg', '53858', 'image/jpeg', 1, 1565342728, 1, 2),
+(672, 'c7a2a20190809172529424314.jpg', '/uploads/routine/activity/bargain/poster/c7a2a20190809172529424314.jpg', '/uploads/routine/activity/bargain/poster/c7a2a20190809172529424314.jpg', '48246', 'image/jpeg', 1, 1565342729, 1, 2),
+(673, 'b4f1e20190809172700300194.jpg', '/uploads/routine/activity/bargain/poster/b4f1e20190809172700300194.jpg', '/uploads/routine/activity/bargain/poster/b4f1e20190809172700300194.jpg', '48246', 'image/jpeg', 1, 1565342820, 1, 2),
+(674, '8daf692fa69664b4818f28397efd9ed2.jpg', '/uploads/store/comment/20190809/8daf692fa69664b4818f28397efd9ed2.jpg', '/./uploads/store/comment/20190809/s_8daf692fa69664b4818f28397efd9ed2.jpg', '60582', 'image/jpeg', 1, 1565344762, 1, 2),
+(675, '3_602_1_bargain_share_wap.jpg', '/uploads/qrcode/3_602_1_bargain_share_wap.jpg', '/uploads/qrcode/3_602_1_bargain_share_wap.jpg', '807', 'image/jpeg', 1, 1565347218, 1, 2),
+(676, '170002019080918401912048.jpg', '/uploads/wap/activity/bargain/poster/170002019080918401912048.jpg', '/uploads/wap/activity/bargain/poster/170002019080918401912048.jpg', '50364', 'image/jpeg', 1, 1565347219, 1, 2),
+(677, '6_602_1_bargain_share_wap.jpg', '/uploads/qrcode/6_602_1_bargain_share_wap.jpg', '/uploads/qrcode/6_602_1_bargain_share_wap.jpg', '808', 'image/jpeg', 1, 1565347281, 1, 2),
+(678, '72e6d20190809184121468304.jpg', '/uploads/wap/activity/bargain/poster/72e6d20190809184121468304.jpg', '/uploads/wap/activity/bargain/poster/72e6d20190809184121468304.jpg', '51934', 'image/jpeg', 1, 1565347281, 1, 2),
+(679, '11_product_detail_699_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_699_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_699_is_promoter_0.wap.jpg', '609', 'image/jpeg', 1, 1565350498, 1, 2),
+(680, '3_product_detail_777_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_777_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_777_is_promoter_0.wap.jpg', '606', 'image/jpeg', 1, 1565368396, 1, 2),
+(681, '7_product_detail_699_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_699_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_699_is_promoter_0.wap.jpg', '601', 'image/jpeg', 1, 1565372392, 1, 2),
+(682, '3_product_detail_699_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_699_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_699_is_promoter_0.wap.jpg', '609', 'image/jpeg', 1, 1565372619, 1, 2),
+(683, '9_product_detail_699_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_699_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_699_is_promoter_0.wap.jpg', '609', 'image/jpeg', 1, 1565372643, 1, 2),
+(684, '9447a7d33b0b85b4c9b323ba6a28fac4.jpeg', '/uploads/store/comment/20190810/9447a7d33b0b85b4c9b323ba6a28fac4.jpeg', '/./uploads/store/comment/20190810/s_9447a7d33b0b85b4c9b323ba6a28fac4.jpeg', '317264', 'image/jpeg', 1, 1565395644, 1, 2),
+(685, 'af79e26154db729b8e01561d362c50eb.jpeg', '/uploads/store/comment/20190810/af79e26154db729b8e01561d362c50eb.jpeg', '/./uploads/store/comment/20190810/s_af79e26154db729b8e01561d362c50eb.jpeg', '102985', 'image/jpeg', 1, 1565396034, 1, 2),
+(686, '94acc6f395ac0b1e663c1e29079e00ef.jpeg', '/uploads/store/comment/20190810/94acc6f395ac0b1e663c1e29079e00ef.jpeg', '/./uploads/store/comment/20190810/s_94acc6f395ac0b1e663c1e29079e00ef.jpeg', '46130', 'image/jpeg', 1, 1565396051, 1, 2),
+(687, '27f53ef75884b0606ad36844992cf5bd.jpeg', '/uploads/store/comment/20190810/27f53ef75884b0606ad36844992cf5bd.jpeg', '/./uploads/store/comment/20190810/s_27f53ef75884b0606ad36844992cf5bd.jpeg', '32819', 'image/jpeg', 1, 1565396274, 1, 2),
+(688, '3_168_1_bargain_share_routine.jpg', '/uploads/routine/activity/bargain/code/3_168_1_bargain_share_routine.jpg', '/uploads/routine/activity/bargain/code/3_168_1_bargain_share_routine.jpg', '54798', 'image/jpeg', 1, 1565398626, 1, 2),
+(689, 'a378820190810085706909969.jpg', '/uploads/routine/activity/bargain/poster/a378820190810085706909969.jpg', '/uploads/routine/activity/bargain/poster/a378820190810085706909969.jpg', '46985', 'image/jpeg', 1, 1565398626, 1, 2),
+(690, '8_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/8_product_detail_168_is_promoter_1.wap.jpg', '/uploads/qrcode/8_product_detail_168_is_promoter_1.wap.jpg', '600', 'image/jpeg', 1, 1565398698, 1, 2),
+(691, '5_605_0_bargain_share_wap.jpg', '/uploads/qrcode/5_605_0_bargain_share_wap.jpg', '/uploads/qrcode/5_605_0_bargain_share_wap.jpg', '805', 'image/jpeg', 1, 1565399693, 1, 2),
+(692, '05f1720190810091453805843.jpg', '/uploads/wap/activity/bargain/poster/05f1720190810091453805843.jpg', '/uploads/wap/activity/bargain/poster/05f1720190810091453805843.jpg', '53531', 'image/jpeg', 1, 1565399693, 1, 2),
+(693, '6_605_0_bargain_share_wap.jpg', '/uploads/qrcode/6_605_0_bargain_share_wap.jpg', '/uploads/qrcode/6_605_0_bargain_share_wap.jpg', '805', 'image/jpeg', 1, 1565399710, 1, 2),
+(694, 'b1a5920190810091510239757.jpg', '/uploads/wap/activity/bargain/poster/b1a5920190810091510239757.jpg', '/uploads/wap/activity/bargain/poster/b1a5920190810091510239757.jpg', '50868', 'image/jpeg', 1, 1565399710, 1, 2),
+(695, '11b9820190810091542394109.jpg', '/uploads/wap/activity/bargain/poster/11b9820190810091542394109.jpg', '/uploads/wap/activity/bargain/poster/11b9820190810091542394109.jpg', '50868', 'image/jpeg', 1, 1565399742, 1, 2),
+(696, '3_605_0_bargain_share_wap.jpg', '/uploads/qrcode/3_605_0_bargain_share_wap.jpg', '/uploads/qrcode/3_605_0_bargain_share_wap.jpg', '790', 'image/jpeg', 1, 1565399977, 1, 2),
+(697, 'eef6f20190810091937474252.jpg', '/uploads/wap/activity/bargain/poster/eef6f20190810091937474252.jpg', '/uploads/wap/activity/bargain/poster/eef6f20190810091937474252.jpg', '50556', 'image/jpeg', 1, 1565399977, 1, 2),
+(698, '3a20f20190810091941712733.jpg', '/uploads/wap/activity/bargain/poster/3a20f20190810091941712733.jpg', '/uploads/wap/activity/bargain/poster/3a20f20190810091941712733.jpg', '50556', 'image/jpeg', 1, 1565399981, 1, 2),
+(699, '3191720190810092001209579.jpg', '/uploads/wap/activity/bargain/poster/3191720190810092001209579.jpg', '/uploads/wap/activity/bargain/poster/3191720190810092001209579.jpg', '50556', 'image/jpeg', 1, 1565400001, 1, 2),
+(700, 'e2eab20190810092005742729.jpg', '/uploads/wap/activity/bargain/poster/e2eab20190810092005742729.jpg', '/uploads/wap/activity/bargain/poster/e2eab20190810092005742729.jpg', '50556', 'image/jpeg', 1, 1565400005, 1, 2),
+(701, 'e458220190810092103985540.jpg', '/uploads/wap/activity/bargain/poster/e458220190810092103985540.jpg', '/uploads/wap/activity/bargain/poster/e458220190810092103985540.jpg', '50556', 'image/jpeg', 1, 1565400063, 1, 2),
+(702, '3_product_detail_605_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_605_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_605_is_promoter_0.wap.jpg', '604', 'image/jpeg', 1, 1565400097, 1, 2),
+(703, '33cc6da52ac10b555de91bc91d752e74.jpg', '/uploads/store/comment/20190810/33cc6da52ac10b555de91bc91d752e74.jpg', '/./uploads/store/comment/20190810/s_33cc6da52ac10b555de91bc91d752e74.jpg', '261169', 'image/jpeg', 1, 1565400845, 1, 2),
+(704, 'f739e9a7a35173cb9d4c2a7c297fe0a9.jpg', '/uploads/store/comment/20190810/f739e9a7a35173cb9d4c2a7c297fe0a9.jpg', '/./uploads/store/comment/20190810/s_f739e9a7a35173cb9d4c2a7c297fe0a9.jpg', '290790', 'image/jpeg', 1, 1565401139, 1, 2),
+(705, '3_166_0_bargain_share_wap.jpg', '/uploads/qrcode/3_166_0_bargain_share_wap.jpg', '/uploads/qrcode/3_166_0_bargain_share_wap.jpg', '812', 'image/jpeg', 1, 1565401716, 1, 2),
+(706, '3cc5720190810094836966763.jpg', '/uploads/wap/activity/bargain/poster/3cc5720190810094836966763.jpg', '/uploads/wap/activity/bargain/poster/3cc5720190810094836966763.jpg', '50467', 'image/jpeg', 1, 1565401716, 1, 2),
+(707, '34ed02019081009535136145.jpg', '/uploads/wap/activity/bargain/poster/34ed02019081009535136145.jpg', '/uploads/wap/activity/bargain/poster/34ed02019081009535136145.jpg', '50467', 'image/jpeg', 1, 1565402031, 1, 2),
+(708, '587_1_user_wap.jpg', '/uploads/qrcode/587_1_user_wap.jpg', '/uploads/qrcode/587_1_user_wap.jpg', '502', 'image/jpeg', 1, 1565402278, 1, 2),
+(709, '0fd6020190810095758714780.jpg', '/uploads/wap/spread/poster/0fd6020190810095758714780.jpg', '/uploads/wap/spread/poster/0fd6020190810095758714780.jpg', '83183', 'image/jpeg', 1, 1565402278, 1, 2),
+(710, 'b706820190810095758324299.jpg', '/uploads/wap/spread/poster/b706820190810095758324299.jpg', '/uploads/wap/spread/poster/b706820190810095758324299.jpg', '55553', 'image/jpeg', 1, 1565402278, 1, 2),
+(711, '52b7320190810095758116635.jpg', '/uploads/wap/spread/poster/52b7320190810095758116635.jpg', '/uploads/wap/spread/poster/52b7320190810095758116635.jpg', '76208', 'image/jpeg', 1, 1565402278, 1, 2),
+(712, '927b02019081010110367889.jpg', '/uploads/wap/spread/poster/927b02019081010110367889.jpg', '/uploads/wap/spread/poster/927b02019081010110367889.jpg', '83037', 'image/jpeg', 1, 1565403063, 1, 2),
+(713, '4f16c2019081010110314606.jpg', '/uploads/wap/spread/poster/4f16c2019081010110314606.jpg', '/uploads/wap/spread/poster/4f16c2019081010110314606.jpg', '55417', 'image/jpeg', 1, 1565403063, 1, 2),
+(714, 'df4fe20190810101104270751.jpg', '/uploads/wap/spread/poster/df4fe20190810101104270751.jpg', '/uploads/wap/spread/poster/df4fe20190810101104270751.jpg', '76071', 'image/jpeg', 1, 1565403064, 1, 2),
+(715, '623a4c225738606e4c65f93217050c86.jpg', '/uploads/attach/2019/08/20190810/623a4c225738606e4c65f93217050c86.jpg', '/./uploads/attach/2019/08/20190810/s_623a4c225738606e4c65f93217050c86.jpg', '97039', 'image/jpeg', 8, 1565403240, 1, 1),
+(716, '887960975abc9a89e410db82e0089680.jpg', '/uploads/attach/2019/08/20190810/887960975abc9a89e410db82e0089680.jpg', '/./uploads/attach/2019/08/20190810/s_887960975abc9a89e410db82e0089680.jpg', '154063', 'image/jpeg', 8, 1565403240, 1, 1),
+(717, '93669bff568cf8eb967670d9cd3ca78c.jpg', '/uploads/attach/2019/08/20190810/93669bff568cf8eb967670d9cd3ca78c.jpg', '/./uploads/attach/2019/08/20190810/s_93669bff568cf8eb967670d9cd3ca78c.jpg', '165730', 'image/jpeg', 8, 1565403240, 1, 1),
+(718, '6e27120190810101432669653.jpg', '/uploads/wap/spread/poster/6e27120190810101432669653.jpg', '/uploads/wap/spread/poster/6e27120190810101432669653.jpg', '83037', 'image/jpeg', 1, 1565403272, 1, 2),
+(719, '80a9e20190810101432298242.jpg', '/uploads/wap/spread/poster/80a9e20190810101432298242.jpg', '/uploads/wap/spread/poster/80a9e20190810101432298242.jpg', '55417', 'image/jpeg', 1, 1565403272, 1, 2),
+(720, '79713201908101014327798.jpg', '/uploads/wap/spread/poster/79713201908101014327798.jpg', '/uploads/wap/spread/poster/79713201908101014327798.jpg', '76071', 'image/jpeg', 1, 1565403272, 1, 2),
+(721, '3c77820190810101453167481.jpg', '/uploads/wap/spread/poster/3c77820190810101453167481.jpg', '/uploads/wap/spread/poster/3c77820190810101453167481.jpg', '83037', 'image/jpeg', 1, 1565403293, 1, 2),
+(722, 'b16e820190810101453218969.jpg', '/uploads/wap/spread/poster/b16e820190810101453218969.jpg', '/uploads/wap/spread/poster/b16e820190810101453218969.jpg', '55417', 'image/jpeg', 1, 1565403293, 1, 2),
+(723, '0a93020190810101453586145.jpg', '/uploads/wap/spread/poster/0a93020190810101453586145.jpg', '/uploads/wap/spread/poster/0a93020190810101453586145.jpg', '76071', 'image/jpeg', 1, 1565403293, 1, 2),
+(724, '300be20190810101526403189.jpg', '/uploads/wap/spread/poster/300be20190810101526403189.jpg', '/uploads/wap/spread/poster/300be20190810101526403189.jpg', '83037', 'image/jpeg', 1, 1565403326, 1, 2),
+(725, 'cca2820190810101526436866.jpg', '/uploads/wap/spread/poster/cca2820190810101526436866.jpg', '/uploads/wap/spread/poster/cca2820190810101526436866.jpg', '55417', 'image/jpeg', 1, 1565403326, 1, 2),
+(726, 'a684e201908101015263440.jpg', '/uploads/wap/spread/poster/a684e201908101015263440.jpg', '/uploads/wap/spread/poster/a684e201908101015263440.jpg', '76071', 'image/jpeg', 1, 1565403326, 1, 2),
+(727, '75a7c20190810101626996721.jpg', '/uploads/wap/spread/poster/75a7c20190810101626996721.jpg', '/uploads/wap/spread/poster/75a7c20190810101626996721.jpg', '83037', 'image/jpeg', 1, 1565403386, 1, 2),
+(728, '0690520190810101626285628.jpg', '/uploads/wap/spread/poster/0690520190810101626285628.jpg', '/uploads/wap/spread/poster/0690520190810101626285628.jpg', '55417', 'image/jpeg', 1, 1565403386, 1, 2),
+(729, 'ae5022019081010162665927.jpg', '/uploads/wap/spread/poster/ae5022019081010162665927.jpg', '/uploads/wap/spread/poster/ae5022019081010162665927.jpg', '76071', 'image/jpeg', 1, 1565403386, 1, 2),
+(730, '168_1_user_routine.jpg', '/uploads/routine/spread/code/168_1_user_routine.jpg', '/uploads/routine/spread/code/168_1_user_routine.jpg', '50419', 'image/jpeg', 1, 1565403495, 1, 2),
+(731, '0d77020190810101815824444.jpg', '/uploads/routine/spread/poster/0d77020190810101815824444.jpg', '/uploads/routine/spread/poster/0d77020190810101815824444.jpg', '82112', 'image/jpeg', 1, 1565403495, 1, 2),
+(732, '5272020190810101815680677.jpg', '/uploads/routine/spread/poster/5272020190810101815680677.jpg', '/uploads/routine/spread/poster/5272020190810101815680677.jpg', '54479', 'image/jpeg', 1, 1565403495, 1, 2),
+(733, 'ddb3020190810101816222053.jpg', '/uploads/routine/spread/poster/ddb3020190810101816222053.jpg', '/uploads/routine/spread/poster/ddb3020190810101816222053.jpg', '75132', 'image/jpeg', 1, 1565403496, 1, 2),
+(734, 'd943720190810102023909829.jpg', '/uploads/routine/spread/poster/d943720190810102023909829.jpg', '/uploads/routine/spread/poster/d943720190810102023909829.jpg', '82112', 'image/jpeg', 1, 1565403623, 1, 2),
+(735, '9960720190810102023772823.jpg', '/uploads/routine/spread/poster/9960720190810102023772823.jpg', '/uploads/routine/spread/poster/9960720190810102023772823.jpg', '54479', 'image/jpeg', 1, 1565403623, 1, 2),
+(736, 'fba9d20190810102023333152.jpg', '/uploads/routine/spread/poster/fba9d20190810102023333152.jpg', '/uploads/routine/spread/poster/fba9d20190810102023333152.jpg', '75132', 'image/jpeg', 1, 1565403623, 1, 2),
+(737, '15f9920190810102656233207.jpg', '/uploads/wap/activity/bargain/poster/15f9920190810102656233207.jpg', '/uploads/wap/activity/bargain/poster/15f9920190810102656233207.jpg', '50467', 'image/jpeg', 1, 1565404016, 1, 2),
+(738, '0163c20190810102720117158.jpg', '/uploads/wap/activity/bargain/poster/0163c20190810102720117158.jpg', '/uploads/wap/activity/bargain/poster/0163c20190810102720117158.jpg', '50467', 'image/jpeg', 1, 1565404040, 1, 2),
+(739, '0502a20190810102724205893.jpg', '/uploads/wap/activity/bargain/poster/0502a20190810102724205893.jpg', '/uploads/wap/activity/bargain/poster/0502a20190810102724205893.jpg', '50467', 'image/jpeg', 1, 1565404044, 1, 2),
+(740, '99ef020190810102734771881.jpg', '/uploads/wap/activity/bargain/poster/99ef020190810102734771881.jpg', '/uploads/wap/activity/bargain/poster/99ef020190810102734771881.jpg', '50467', 'image/jpeg', 1, 1565404054, 1, 2),
+(741, '8963920190810103437416321.jpg', '/uploads/wap/spread/poster/8963920190810103437416321.jpg', '/uploads/wap/spread/poster/8963920190810103437416321.jpg', '83037', 'image/jpeg', 1, 1565404477, 1, 2),
+(742, '3f8e820190810103437865217.jpg', '/uploads/wap/spread/poster/3f8e820190810103437865217.jpg', '/uploads/wap/spread/poster/3f8e820190810103437865217.jpg', '55417', 'image/jpeg', 1, 1565404477, 1, 2),
+(743, 'b0c7a20190810103438547815.jpg', '/uploads/wap/spread/poster/b0c7a20190810103438547815.jpg', '/uploads/wap/spread/poster/b0c7a20190810103438547815.jpg', '76071', 'image/jpeg', 1, 1565404478, 1, 2),
+(744, 'c76fc20190810103519598997.jpg', '/uploads/routine/spread/poster/c76fc20190810103519598997.jpg', '/uploads/routine/spread/poster/c76fc20190810103519598997.jpg', '82112', 'image/jpeg', 1, 1565404519, 1, 2),
+(745, '8d0ea20190810103519341564.jpg', '/uploads/routine/spread/poster/8d0ea20190810103519341564.jpg', '/uploads/routine/spread/poster/8d0ea20190810103519341564.jpg', '54479', 'image/jpeg', 1, 1565404519, 1, 2),
+(746, 'afb7920190810103519952760.jpg', '/uploads/routine/spread/poster/afb7920190810103519952760.jpg', '/uploads/routine/spread/poster/afb7920190810103519952760.jpg', '75132', 'image/jpeg', 1, 1565404519, 1, 2),
+(747, '11_product_detail_788_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_788_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_788_is_promoter_0.wap.jpg', '604', 'image/jpeg', 1, 1565404768, 1, 2),
+(748, '2_168_1_product.jpg', '/uploads/routine/product/2_168_1_product.jpg', '/uploads/routine/product/2_168_1_product.jpg', '48453', 'image/jpeg', 1, 1565405007, 1, 2);
+INSERT INTO `eb_system_attachment` (`att_id`, `name`, `att_dir`, `satt_dir`, `att_size`, `att_type`, `pid`, `time`, `image_type`, `module_type`) VALUES
+(749, '3_168_1_product.jpg', '/uploads/routine/product/3_168_1_product.jpg', '/uploads/routine/product/3_168_1_product.jpg', '48570', 'image/jpeg', 1, 1565405331, 1, 2),
+(750, '11_product_detail_791_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_791_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_791_is_promoter_0.wap.jpg', '588', 'image/jpeg', 1, 1565405474, 1, 2),
+(751, '3_607_0_bargain_share_wap.jpg', '/uploads/qrcode/3_607_0_bargain_share_wap.jpg', '/uploads/qrcode/3_607_0_bargain_share_wap.jpg', '811', 'image/jpeg', 1, 1565405708, 1, 2),
+(752, '975e620190810105508186846.jpg', '/uploads/wap/activity/bargain/poster/975e620190810105508186846.jpg', '/uploads/wap/activity/bargain/poster/975e620190810105508186846.jpg', '50896', 'image/jpeg', 1, 1565405708, 1, 2),
+(753, '7_168_1_product.jpg', '/uploads/routine/product/7_168_1_product.jpg', '/uploads/routine/product/7_168_1_product.jpg', '49574', 'image/jpeg', 1, 1565405848, 1, 2),
+(754, '11_168_1_product.jpg', '/uploads/routine/product/11_168_1_product.jpg', '/uploads/routine/product/11_168_1_product.jpg', '49205', 'image/jpeg', 1, 1565405950, 1, 2),
+(755, '69cb986f474b77338991c43bd23b10e1.jpg', '/uploads/store/comment/20190810/69cb986f474b77338991c43bd23b10e1.jpg', '/./uploads/store/comment/20190810/s_69cb986f474b77338991c43bd23b10e1.jpg', '191710', 'image/jpeg', 1, 1565407656, 1, 2),
+(756, '9_product_detail_804_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_804_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_804_is_promoter_0.wap.jpg', '603', 'image/jpeg', 1, 1565417740, 1, 2),
+(757, '3_579_1_bargain_share_wap.jpg', '/uploads/qrcode/3_579_1_bargain_share_wap.jpg', '/uploads/qrcode/3_579_1_bargain_share_wap.jpg', '802', 'image/jpeg', 1, 1565417767, 1, 2),
+(758, 'ef0ef20190810141607639100.jpg', '/uploads/wap/activity/bargain/poster/ef0ef20190810141607639100.jpg', '/uploads/wap/activity/bargain/poster/ef0ef20190810141607639100.jpg', '50198', 'image/jpeg', 1, 1565417767, 1, 2),
+(759, '3_807_0_bargain_share_wap.jpg', '/uploads/qrcode/3_807_0_bargain_share_wap.jpg', '/uploads/qrcode/3_807_0_bargain_share_wap.jpg', '812', 'image/jpeg', 1, 1565418899, 1, 2),
+(760, '6e92320190810143500632067.jpg', '/uploads/wap/activity/bargain/poster/6e92320190810143500632067.jpg', '/uploads/wap/activity/bargain/poster/6e92320190810143500632067.jpg', '50389', 'image/jpeg', 1, 1565418900, 1, 2),
+(761, '28_607_0_pink_share_wap.jpg', '/uploads/qrcode/28_607_0_pink_share_wap.jpg', '/uploads/qrcode/28_607_0_pink_share_wap.jpg', '703', 'image/jpeg', 1, 1565419172, 1, 2),
+(762, '6a9ae20190810143932941735.jpg', '/uploads/wap/activity/pink/poster/6a9ae20190810143932941735.jpg', '/uploads/wap/activity/pink/poster/6a9ae20190810143932941735.jpg', '49880', 'image/jpeg', 1, 1565419172, 1, 2),
+(763, '84f473add2215e083f55ece765cd8401.gif', '/uploads/store/comment/20190810/84f473add2215e083f55ece765cd8401.gif', '/./uploads/store/comment/20190810/s_84f473add2215e083f55ece765cd8401.gif', '572309', 'image/gif', 1, 1565419356, 1, 2),
+(764, 'd1c3720190810145545515469.jpg', '/uploads/routine/spread/poster/d1c3720190810145545515469.jpg', '/uploads/routine/spread/poster/d1c3720190810145545515469.jpg', '82112', 'image/jpeg', 1, 1565420145, 1, 2),
+(765, 'b56a120190810145545930668.jpg', '/uploads/routine/spread/poster/b56a120190810145545930668.jpg', '/uploads/routine/spread/poster/b56a120190810145545930668.jpg', '54479', 'image/jpeg', 1, 1565420145, 1, 2),
+(766, '1011220190810145546654242.jpg', '/uploads/routine/spread/poster/1011220190810145546654242.jpg', '/uploads/routine/spread/poster/1011220190810145546654242.jpg', '75132', 'image/jpeg', 1, 1565420146, 1, 2),
+(767, 'd0f3c20190810154531656240.jpg', '/uploads/wap/activity/bargain/poster/d0f3c20190810154531656240.jpg', '/uploads/wap/activity/bargain/poster/d0f3c20190810154531656240.jpg', '50198', 'image/jpeg', 1, 1565423131, 1, 2),
+(768, '62606bed11941e221d9aa6fc4c1a7d3b.jpeg', '/uploads/store/comment/20190810/62606bed11941e221d9aa6fc4c1a7d3b.jpeg', '/./uploads/store/comment/20190810/s_62606bed11941e221d9aa6fc4c1a7d3b.jpeg', '4693', 'image/jpeg', 1, 1565426401, 1, 2),
+(769, '3_product_detail_753_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_753_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_753_is_promoter_0.wap.jpg', '602', 'image/jpeg', 1, 1565426870, 1, 2),
+(770, '29_676_0_pink_share_wap.jpg', '/uploads/qrcode/29_676_0_pink_share_wap.jpg', '/uploads/qrcode/29_676_0_pink_share_wap.jpg', '709', 'image/jpeg', 1, 1565428808, 1, 2),
+(771, '4c07f20190810172008309835.jpg', '/uploads/wap/activity/pink/poster/4c07f20190810172008309835.jpg', '/uploads/wap/activity/pink/poster/4c07f20190810172008309835.jpg', '53096', 'image/jpeg', 1, 1565428808, 1, 2),
+(772, '1a04f20190810172125197716.jpg', '/uploads/wap/activity/bargain/poster/1a04f20190810172125197716.jpg', '/uploads/wap/activity/bargain/poster/1a04f20190810172125197716.jpg', '53276', 'image/jpeg', 1, 1565428885, 1, 2),
+(773, 'c696920190810172144649013.jpg', '/uploads/wap/activity/bargain/poster/c696920190810172144649013.jpg', '/uploads/wap/activity/bargain/poster/c696920190810172144649013.jpg', '53276', 'image/jpeg', 1, 1565428904, 1, 2),
+(774, '31_168_1_pink_share_wap.jpg', '/uploads/qrcode/31_168_1_pink_share_wap.jpg', '/uploads/qrcode/31_168_1_pink_share_wap.jpg', '706', 'image/jpeg', 1, 1565428947, 1, 2),
+(775, '9f87820190810172227536462.jpg', '/uploads/wap/activity/pink/poster/9f87820190810172227536462.jpg', '/uploads/wap/activity/pink/poster/9f87820190810172227536462.jpg', '53111', 'image/jpeg', 1, 1565428947, 1, 2),
+(776, '79937339d66b6ba5b5474fd6bb71990f.jpg', '/uploads/store/comment/20190810/79937339d66b6ba5b5474fd6bb71990f.jpg', '/./uploads/store/comment/20190810/s_79937339d66b6ba5b5474fd6bb71990f.jpg', '66163', 'image/jpeg', 1, 1565428950, 1, 2),
+(777, '33_169_0_pink_share_wap.jpg', '/uploads/qrcode/33_169_0_pink_share_wap.jpg', '/uploads/qrcode/33_169_0_pink_share_wap.jpg', '695', 'image/jpeg', 1, 1565429032, 1, 2),
+(778, 'c0db120190810172352532036.jpg', '/uploads/wap/activity/pink/poster/c0db120190810172352532036.jpg', '/uploads/wap/activity/pink/poster/c0db120190810172352532036.jpg', '49789', 'image/jpeg', 1, 1565429032, 1, 2),
+(779, 'c2d3ff995f949200d28b3d89d1672cb6.png', '/uploads/store/comment/20190810/c2d3ff995f949200d28b3d89d1672cb6.png', '/./uploads/store/comment/20190810/s_c2d3ff995f949200d28b3d89d1672cb6.png', '432873', 'image/png', 1, 1565429071, 1, 2),
+(780, '34_166_0_pink_share_wap.jpg', '/uploads/qrcode/34_166_0_pink_share_wap.jpg', '/uploads/qrcode/34_166_0_pink_share_wap.jpg', '700', 'image/jpeg', 1, 1565429124, 1, 2),
+(781, '0eac620190810172524694550.jpg', '/uploads/wap/activity/pink/poster/0eac620190810172524694550.jpg', '/uploads/wap/activity/pink/poster/0eac620190810172524694550.jpg', '53216', 'image/jpeg', 1, 1565429124, 1, 2),
+(782, '11_product_detail_823_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_823_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_823_is_promoter_0.wap.jpg', '594', 'image/jpeg', 1, 1565429500, 1, 2),
+(783, '3_822_0_bargain_share_wap.jpg', '/uploads/qrcode/3_822_0_bargain_share_wap.jpg', '/uploads/qrcode/3_822_0_bargain_share_wap.jpg', '816', 'image/jpeg', 1, 1565429538, 1, 2),
+(784, '2438920190810173218811257.jpg', '/uploads/wap/activity/bargain/poster/2438920190810173218811257.jpg', '/uploads/wap/activity/bargain/poster/2438920190810173218811257.jpg', '50549', 'image/jpeg', 1, 1565429538, 1, 2),
+(785, '3_691_0_bargain_share_wap.jpg', '/uploads/qrcode/3_691_0_bargain_share_wap.jpg', '/uploads/qrcode/3_691_0_bargain_share_wap.jpg', '809', 'image/jpeg', 1, 1565429663, 1, 2),
+(786, '760ab20190810173424626585.jpg', '/uploads/wap/activity/bargain/poster/760ab20190810173424626585.jpg', '/uploads/wap/activity/bargain/poster/760ab20190810173424626585.jpg', '50124', 'image/jpeg', 1, 1565429664, 1, 2),
+(787, '8193330a02617b7cbecafc3a57bbd61b.jpg', '/uploads/store/comment/20190810/8193330a02617b7cbecafc3a57bbd61b.jpg', '/./uploads/store/comment/20190810/s_8193330a02617b7cbecafc3a57bbd61b.jpg', '2352', 'image/jpeg', 1, 1565429716, 1, 2),
+(788, '50d2d20190810173616867740.jpg', '/uploads/wap/activity/bargain/poster/50d2d20190810173616867740.jpg', '/uploads/wap/activity/bargain/poster/50d2d20190810173616867740.jpg', '50223', 'image/jpeg', 1, 1565429776, 1, 2),
+(789, '5_676_0_bargain_share_wap.jpg', '/uploads/qrcode/5_676_0_bargain_share_wap.jpg', '/uploads/qrcode/5_676_0_bargain_share_wap.jpg', '792', 'image/jpeg', 1, 1565429777, 1, 2),
+(790, '6637720190810173617423855.jpg', '/uploads/wap/activity/bargain/poster/6637720190810173617423855.jpg', '/uploads/wap/activity/bargain/poster/6637720190810173617423855.jpg', '53766', 'image/jpeg', 1, 1565429777, 1, 2),
+(791, '559cb2019081017365468042.jpg', '/uploads/wap/activity/bargain/poster/559cb2019081017365468042.jpg', '/uploads/wap/activity/bargain/poster/559cb2019081017365468042.jpg', '53239', 'image/jpeg', 1, 1565429814, 1, 2),
+(792, '6d90f7b30563731f9f079d635584c138.png', '/uploads/store/comment/20190810/6d90f7b30563731f9f079d635584c138.png', '/./uploads/store/comment/20190810/s_6d90f7b30563731f9f079d635584c138.png', '672449', 'image/png', 1, 1565429997, 1, 2),
+(793, '3_product_detail_169_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_169_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_169_is_promoter_0.wap.jpg', '608', 'image/jpeg', 1, 1565430005, 1, 2),
+(794, '3e9e320190810174051623599.jpg', '/uploads/wap/activity/bargain/poster/3e9e320190810174051623599.jpg', '/uploads/wap/activity/bargain/poster/3e9e320190810174051623599.jpg', '50223', 'image/jpeg', 1, 1565430051, 1, 2),
+(795, 'b19aa20190810174051234834.jpg', '/uploads/wap/activity/bargain/poster/b19aa20190810174051234834.jpg', '/uploads/wap/activity/bargain/poster/b19aa20190810174051234834.jpg', '51846', 'image/jpeg', 1, 1565430051, 1, 2),
+(796, 'd324a20190810174103480034.jpg', '/uploads/wap/activity/bargain/poster/d324a20190810174103480034.jpg', '/uploads/wap/activity/bargain/poster/d324a20190810174103480034.jpg', '50223', 'image/jpeg', 1, 1565430063, 1, 2),
+(797, 'c44be20190810174126739853.jpg', '/uploads/routine/activity/bargain/poster/c44be20190810174126739853.jpg', '/uploads/routine/activity/bargain/poster/c44be20190810174126739853.jpg', '46985', 'image/jpeg', 1, 1565430086, 1, 2),
+(798, '6_822_0_bargain_share_wap.jpg', '/uploads/qrcode/6_822_0_bargain_share_wap.jpg', '/uploads/qrcode/6_822_0_bargain_share_wap.jpg', '805', 'image/jpeg', 1, 1565430089, 1, 2),
+(799, '128ac20190810174129669553.jpg', '/uploads/wap/activity/bargain/poster/128ac20190810174129669553.jpg', '/uploads/wap/activity/bargain/poster/128ac20190810174129669553.jpg', '51796', 'image/jpeg', 1, 1565430089, 1, 2),
+(800, '3_558_0_bargain_share_wap.jpg', '/uploads/qrcode/3_558_0_bargain_share_wap.jpg', '/uploads/qrcode/3_558_0_bargain_share_wap.jpg', '797', 'image/jpeg', 1, 1565430113, 1, 2),
+(801, '9b04d20190810174153250192.jpg', '/uploads/wap/activity/bargain/poster/9b04d20190810174153250192.jpg', '/uploads/wap/activity/bargain/poster/9b04d20190810174153250192.jpg', '50300', 'image/jpeg', 1, 1565430113, 1, 2),
+(802, '37_607_0_pink_share_wap.jpg', '/uploads/qrcode/37_607_0_pink_share_wap.jpg', '/uploads/qrcode/37_607_0_pink_share_wap.jpg', '707', 'image/jpeg', 1, 1565430114, 1, 2),
+(803, '19d1920190810174154767709.jpg', '/uploads/wap/activity/pink/poster/19d1920190810174154767709.jpg', '/uploads/wap/activity/pink/poster/19d1920190810174154767709.jpg', '49860', 'image/jpeg', 1, 1565430114, 1, 2),
+(804, 'd425420190810174214992112.jpg', '/uploads/routine/activity/bargain/poster/d425420190810174214992112.jpg', '/uploads/routine/activity/bargain/poster/d425420190810174214992112.jpg', '47382', 'image/jpeg', 1, 1565430134, 1, 2),
+(805, 'a36b020190810174229384386.jpg', '/uploads/wap/activity/bargain/poster/a36b020190810174229384386.jpg', '/uploads/wap/activity/bargain/poster/a36b020190810174229384386.jpg', '51494', 'image/jpeg', 1, 1565430149, 1, 2),
+(806, '6c34920190810174246281748.jpg', '/uploads/wap/activity/bargain/poster/6c34920190810174246281748.jpg', '/uploads/wap/activity/bargain/poster/6c34920190810174246281748.jpg', '51292', 'image/jpeg', 1, 1565430166, 1, 2),
+(807, 'bb57620190810174250562589.jpg', '/uploads/wap/activity/bargain/poster/bb57620190810174250562589.jpg', '/uploads/wap/activity/bargain/poster/bb57620190810174250562589.jpg', '51292', 'image/jpeg', 1, 1565430170, 1, 2),
+(808, '2c62020190810174312807385.jpg', '/uploads/wap/activity/bargain/poster/2c62020190810174312807385.jpg', '/uploads/wap/activity/bargain/poster/2c62020190810174312807385.jpg', '51292', 'image/jpeg', 1, 1565430192, 1, 2),
+(809, '4e02220190810174326126788.jpg', '/uploads/wap/activity/bargain/poster/4e02220190810174326126788.jpg', '/uploads/wap/activity/bargain/poster/4e02220190810174326126788.jpg', '51292', 'image/jpeg', 1, 1565430206, 1, 2),
+(810, '5_169_0_bargain_share_wap.jpg', '/uploads/qrcode/5_169_0_bargain_share_wap.jpg', '/uploads/qrcode/5_169_0_bargain_share_wap.jpg', '808', 'image/jpeg', 1, 1565430353, 1, 2),
+(811, '6ea2e20190810174553173463.jpg', '/uploads/wap/activity/bargain/poster/6ea2e20190810174553173463.jpg', '/uploads/wap/activity/bargain/poster/6ea2e20190810174553173463.jpg', '53634', 'image/jpeg', 1, 1565430353, 1, 2),
+(812, '5_621_0_bargain_share_wap.jpg', '/uploads/qrcode/5_621_0_bargain_share_wap.jpg', '/uploads/qrcode/5_621_0_bargain_share_wap.jpg', '810', 'image/jpeg', 1, 1565430372, 1, 2),
+(813, '9df8120190810174612343416.jpg', '/uploads/wap/activity/bargain/poster/9df8120190810174612343416.jpg', '/uploads/wap/activity/bargain/poster/9df8120190810174612343416.jpg', '53200', 'image/jpeg', 1, 1565430372, 1, 2),
+(814, '6a61d20190810174617161654.jpg', '/uploads/wap/activity/bargain/poster/6a61d20190810174617161654.jpg', '/uploads/wap/activity/bargain/poster/6a61d20190810174617161654.jpg', '53407', 'image/jpeg', 1, 1565430377, 1, 2),
+(815, '60b2120190810174702718330.jpg', '/uploads/wap/activity/bargain/poster/60b2120190810174702718330.jpg', '/uploads/wap/activity/bargain/poster/60b2120190810174702718330.jpg', '53634', 'image/jpeg', 1, 1565430422, 1, 2),
+(816, 'e0c7c20190810174704338601.jpg', '/uploads/wap/activity/bargain/poster/e0c7c20190810174704338601.jpg', '/uploads/wap/activity/bargain/poster/e0c7c20190810174704338601.jpg', '53407', 'image/jpeg', 1, 1565430424, 1, 2),
+(817, 'bb44c2019081017473020165.jpg', '/uploads/wap/activity/bargain/poster/bb44c2019081017473020165.jpg', '/uploads/wap/activity/bargain/poster/bb44c2019081017473020165.jpg', '53634', 'image/jpeg', 1, 1565430450, 1, 2),
+(818, 'ec2002019081017481290256.jpg', '/uploads/wap/activity/bargain/poster/ec2002019081017481290256.jpg', '/uploads/wap/activity/bargain/poster/ec2002019081017481290256.jpg', '53407', 'image/jpeg', 1, 1565430492, 1, 2),
+(819, 'd5b0320190810174841818950.jpg', '/uploads/wap/activity/bargain/poster/d5b0320190810174841818950.jpg', '/uploads/wap/activity/bargain/poster/d5b0320190810174841818950.jpg', '53413', 'image/jpeg', 1, 1565430521, 1, 2),
+(820, '5_166_0_bargain_share_wap.jpg', '/uploads/qrcode/5_166_0_bargain_share_wap.jpg', '/uploads/qrcode/5_166_0_bargain_share_wap.jpg', '801', 'image/jpeg', 1, 1565430535, 1, 2),
+(821, '5ca3e20190810174855824519.jpg', '/uploads/wap/activity/bargain/poster/5ca3e20190810174855824519.jpg', '/uploads/wap/activity/bargain/poster/5ca3e20190810174855824519.jpg', '53168', 'image/jpeg', 1, 1565430535, 1, 2),
+(822, '5_607_0_bargain_share_wap.jpg', '/uploads/qrcode/5_607_0_bargain_share_wap.jpg', '/uploads/qrcode/5_607_0_bargain_share_wap.jpg', '805', 'image/jpeg', 1, 1565430540, 1, 2),
+(823, '0c29c201908101749009394.jpg', '/uploads/wap/activity/bargain/poster/0c29c201908101749009394.jpg', '/uploads/wap/activity/bargain/poster/0c29c201908101749009394.jpg', '53208', 'image/jpeg', 1, 1565430540, 1, 2),
+(824, 'f858020190810174909414752.jpg', '/uploads/wap/activity/bargain/poster/f858020190810174909414752.jpg', '/uploads/wap/activity/bargain/poster/f858020190810174909414752.jpg', '53413', 'image/jpeg', 1, 1565430549, 1, 2),
+(825, '282bb20190810174940286798.jpg', '/uploads/wap/activity/bargain/poster/282bb20190810174940286798.jpg', '/uploads/wap/activity/bargain/poster/282bb20190810174940286798.jpg', '53488', 'image/jpeg', 1, 1565430580, 1, 2),
+(826, 'b59a520190810174953911082.jpg', '/uploads/wap/activity/bargain/poster/b59a520190810174953911082.jpg', '/uploads/wap/activity/bargain/poster/b59a520190810174953911082.jpg', '53168', 'image/jpeg', 1, 1565430593, 1, 2),
+(827, '6d60820190810175106117864.jpg', '/uploads/wap/activity/bargain/poster/6d60820190810175106117864.jpg', '/uploads/wap/activity/bargain/poster/6d60820190810175106117864.jpg', '53568', 'image/jpeg', 1, 1565430666, 1, 2),
+(828, '3_product_detail_621_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_621_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_621_is_promoter_0.wap.jpg', '589', 'image/jpeg', 1, 1565430671, 1, 2),
+(829, '50956c13bc953c1ee01ceec733970729.jpeg', '/uploads/store/comment/20190810/50956c13bc953c1ee01ceec733970729.jpeg', '/./uploads/store/comment/20190810/s_50956c13bc953c1ee01ceec733970729.jpeg', '55803', 'image/jpeg', 1, 1565430793, 1, 2),
+(830, 'eab9c20190810175319884307.jpg', '/uploads/wap/activity/bargain/poster/eab9c20190810175319884307.jpg', '/uploads/wap/activity/bargain/poster/eab9c20190810175319884307.jpg', '53168', 'image/jpeg', 1, 1565430799, 1, 2),
+(831, '7d466f8ed8baebde3d9a06f7af32ca0d.jpeg', '/uploads/store/comment/20190810/7d466f8ed8baebde3d9a06f7af32ca0d.jpeg', '/./uploads/store/comment/20190810/s_7d466f8ed8baebde3d9a06f7af32ca0d.jpeg', '37003', 'image/jpeg', 1, 1565430833, 1, 2),
+(832, 'a57220d0edcd9768170ba94a09f61135.jpeg', '/uploads/store/comment/20190810/a57220d0edcd9768170ba94a09f61135.jpeg', '/./uploads/store/comment/20190810/s_a57220d0edcd9768170ba94a09f61135.jpeg', '261554', 'image/jpeg', 1, 1565430869, 1, 2),
+(833, 'fc563b9d787633aa239fc04b5ecb63ba.jpeg', '/uploads/store/comment/20190810/fc563b9d787633aa239fc04b5ecb63ba.jpeg', '/./uploads/store/comment/20190810/s_fc563b9d787633aa239fc04b5ecb63ba.jpeg', '294700', 'image/jpeg', 1, 1565430896, 1, 2),
+(834, '76e84ae859cf97edfbe3247610688878.png', '/uploads/store/comment/20190810/76e84ae859cf97edfbe3247610688878.png', '/./uploads/store/comment/20190810/s_76e84ae859cf97edfbe3247610688878.png', '672449', 'image/png', 1, 1565430905, 1, 2),
+(835, '12a0922a968e27a416c615cb64d89a0d.jpg', '/uploads/store/comment/20190810/12a0922a968e27a416c615cb64d89a0d.jpg', '/./uploads/store/comment/20190810/s_12a0922a968e27a416c615cb64d89a0d.jpg', '16709', 'image/jpeg', 1, 1565430959, 1, 2),
+(836, 'f6e7920190810175713361268.jpg', '/uploads/wap/activity/bargain/poster/f6e7920190810175713361268.jpg', '/uploads/wap/activity/bargain/poster/f6e7920190810175713361268.jpg', '50896', 'image/jpeg', 1, 1565431033, 1, 2),
+(837, 'c886220190810175728373739.jpg', '/uploads/wap/activity/bargain/poster/c886220190810175728373739.jpg', '/uploads/wap/activity/bargain/poster/c886220190810175728373739.jpg', '50896', 'image/jpeg', 1, 1565431048, 1, 2),
+(838, '9161a20190810175742469281.jpg', '/uploads/wap/activity/bargain/poster/9161a20190810175742469281.jpg', '/uploads/wap/activity/bargain/poster/9161a20190810175742469281.jpg', '50896', 'image/jpeg', 1, 1565431062, 1, 2),
+(839, '20b0220190810175837540346.jpg', '/uploads/wap/activity/bargain/poster/20b0220190810175837540346.jpg', '/uploads/wap/activity/bargain/poster/20b0220190810175837540346.jpg', '50896', 'image/jpeg', 1, 1565431117, 1, 2),
+(840, '5265d2019081017591615627.jpg', '/uploads/wap/activity/bargain/poster/5265d2019081017591615627.jpg', '/uploads/wap/activity/bargain/poster/5265d2019081017591615627.jpg', '53168', 'image/jpeg', 1, 1565431156, 1, 2),
+(841, '29a9f2019081018003190755.jpg', '/uploads/wap/activity/bargain/poster/29a9f2019081018003190755.jpg', '/uploads/wap/activity/bargain/poster/29a9f2019081018003190755.jpg', '53168', 'image/jpeg', 1, 1565431231, 1, 2),
+(842, '0db695b6f4e80436f35eeed9c4559236.jpg', '/uploads/store/comment/20190810/0db695b6f4e80436f35eeed9c4559236.jpg', '/./uploads/store/comment/20190810/s_0db695b6f4e80436f35eeed9c4559236.jpg', '16709', 'image/jpeg', 1, 1565431294, 1, 2),
+(843, 'ad0f72019081018020735350.jpg', '/uploads/wap/spread/poster/ad0f72019081018020735350.jpg', '/uploads/wap/spread/poster/ad0f72019081018020735350.jpg', '83037', 'image/jpeg', 1, 1565431327, 1, 2),
+(844, 'f0d7020190810180207520549.jpg', '/uploads/wap/spread/poster/f0d7020190810180207520549.jpg', '/uploads/wap/spread/poster/f0d7020190810180207520549.jpg', '55417', 'image/jpeg', 1, 1565431327, 1, 2),
+(845, '9024820190810180208817599.jpg', '/uploads/wap/spread/poster/9024820190810180208817599.jpg', '/uploads/wap/spread/poster/9024820190810180208817599.jpg', '76071', 'image/jpeg', 1, 1565431328, 1, 2),
+(846, '032dd20190810180220774681.jpg', '/uploads/wap/spread/poster/032dd20190810180220774681.jpg', '/uploads/wap/spread/poster/032dd20190810180220774681.jpg', '83037', 'image/jpeg', 1, 1565431340, 1, 2),
+(847, 'e074120190810180220304932.jpg', '/uploads/wap/spread/poster/e074120190810180220304932.jpg', '/uploads/wap/spread/poster/e074120190810180220304932.jpg', '55417', 'image/jpeg', 1, 1565431340, 1, 2),
+(848, 'f827920190810180220465888.jpg', '/uploads/wap/spread/poster/f827920190810180220465888.jpg', '/uploads/wap/spread/poster/f827920190810180220465888.jpg', '76071', 'image/jpeg', 1, 1565431340, 1, 2),
+(849, '3_815_0_bargain_share_wap.jpg', '/uploads/qrcode/3_815_0_bargain_share_wap.jpg', '/uploads/qrcode/3_815_0_bargain_share_wap.jpg', '805', 'image/jpeg', 1, 1565431432, 1, 2),
+(850, 'e105420190810180353850271.jpg', '/uploads/wap/activity/bargain/poster/e105420190810180353850271.jpg', '/uploads/wap/activity/bargain/poster/e105420190810180353850271.jpg', '49962', 'image/jpeg', 1, 1565431433, 1, 2),
+(851, 'b7c4bd3f844fb3fd672c252791046f08.jpeg', '/uploads/store/comment/20190810/b7c4bd3f844fb3fd672c252791046f08.jpeg', '/./uploads/store/comment/20190810/s_b7c4bd3f844fb3fd672c252791046f08.jpeg', '294700', 'image/jpeg', 1, 1565431453, 1, 2),
+(852, '9f62b20190810180441933865.jpg', '/uploads/routine/activity/bargain/poster/9f62b20190810180441933865.jpg', '/uploads/routine/activity/bargain/poster/9f62b20190810180441933865.jpg', '47382', 'image/jpeg', 1, 1565431481, 1, 2),
+(853, '8804f20190810180544523407.jpg', '/uploads/wap/activity/bargain/poster/8804f20190810180544523407.jpg', '/uploads/wap/activity/bargain/poster/8804f20190810180544523407.jpg', '50896', 'image/jpeg', 1, 1565431544, 1, 2),
+(854, '7082120190810180544399839.jpg', '/uploads/wap/activity/bargain/poster/7082120190810180544399839.jpg', '/uploads/wap/activity/bargain/poster/7082120190810180544399839.jpg', '50647', 'image/jpeg', 1, 1565431544, 1, 2),
+(855, 'ddb1b20190810180612176891.jpg', '/uploads/wap/activity/bargain/poster/ddb1b20190810180612176891.jpg', '/uploads/wap/activity/bargain/poster/ddb1b20190810180612176891.jpg', '50896', 'image/jpeg', 1, 1565431572, 1, 2),
+(856, 'f169b20190810180613147159.jpg', '/uploads/wap/activity/bargain/poster/f169b20190810180613147159.jpg', '/uploads/wap/activity/bargain/poster/f169b20190810180613147159.jpg', '50647', 'image/jpeg', 1, 1565431573, 1, 2),
+(857, '88f7777cef66e25e59f283d41f4c0f37.jpg', '/uploads/store/comment/20190810/88f7777cef66e25e59f283d41f4c0f37.jpg', '/./uploads/store/comment/20190810/s_88f7777cef66e25e59f283d41f4c0f37.jpg', '209569', 'image/jpeg', 1, 1565431576, 1, 2),
+(858, '3_824_0_bargain_share_wap.jpg', '/uploads/qrcode/3_824_0_bargain_share_wap.jpg', '/uploads/qrcode/3_824_0_bargain_share_wap.jpg', '800', 'image/jpeg', 1, 1565431587, 1, 2),
+(859, 'bc6fe20190810180628781294.jpg', '/uploads/wap/activity/bargain/poster/bc6fe20190810180628781294.jpg', '/uploads/wap/activity/bargain/poster/bc6fe20190810180628781294.jpg', '50596', 'image/jpeg', 1, 1565431588, 1, 2),
+(860, '60fdf01fd6726f63fbd4848ed26635e4.jpeg', '/uploads/store/comment/20190810/60fdf01fd6726f63fbd4848ed26635e4.jpeg', '/./uploads/store/comment/20190810/s_60fdf01fd6726f63fbd4848ed26635e4.jpeg', '89094', 'image/jpeg', 1, 1565431635, 1, 2),
+(861, '8fe0420190810180717368312.jpg', '/uploads/wap/activity/bargain/poster/8fe0420190810180717368312.jpg', '/uploads/wap/activity/bargain/poster/8fe0420190810180717368312.jpg', '50669', 'image/jpeg', 1, 1565431637, 1, 2),
+(862, '74d5ba43cb04b7057e525a2af18a212e.jpeg', '/uploads/store/comment/20190810/74d5ba43cb04b7057e525a2af18a212e.jpeg', '/./uploads/store/comment/20190810/s_74d5ba43cb04b7057e525a2af18a212e.jpeg', '823019', 'image/jpeg', 1, 1565431649, 1, 2),
+(863, '2710bc043d8bac9b1ad150b228184120.jpeg', '/uploads/store/comment/20190810/2710bc043d8bac9b1ad150b228184120.jpeg', '/./uploads/store/comment/20190810/s_2710bc043d8bac9b1ad150b228184120.jpeg', '12745', 'image/jpeg', 1, 1565431675, 1, 2),
+(864, '9f7d8b60167edcd29d3e668ee62dc812.jpeg', '/uploads/store/comment/20190810/9f7d8b60167edcd29d3e668ee62dc812.jpeg', '/./uploads/store/comment/20190810/s_9f7d8b60167edcd29d3e668ee62dc812.jpeg', '79481', 'image/jpeg', 1, 1565431698, 1, 2),
+(865, 'fe235cf087a68cd1985d7314e35f7020.jpeg', '/uploads/store/comment/20190810/fe235cf087a68cd1985d7314e35f7020.jpeg', '/./uploads/store/comment/20190810/s_fe235cf087a68cd1985d7314e35f7020.jpeg', '431493', 'image/jpeg', 1, 1565431712, 1, 2),
+(866, '87be66d6cdf049ba46effdcd9a0e156e.jpeg', '/uploads/store/comment/20190810/87be66d6cdf049ba46effdcd9a0e156e.jpeg', '/./uploads/store/comment/20190810/s_87be66d6cdf049ba46effdcd9a0e156e.jpeg', '37003', 'image/jpeg', 1, 1565431713, 1, 2),
+(867, 'ef67f20190810181038541116.jpg', '/uploads/wap/activity/bargain/poster/ef67f20190810181038541116.jpg', '/uploads/wap/activity/bargain/poster/ef67f20190810181038541116.jpg', '50386', 'image/jpeg', 1, 1565431838, 1, 2),
+(868, '828162e9e8a9a4e6a16dfe95cbe7e3fa.png', '/uploads/store/comment/20190810/828162e9e8a9a4e6a16dfe95cbe7e3fa.png', '/./uploads/store/comment/20190810/s_828162e9e8a9a4e6a16dfe95cbe7e3fa.png', '457134', 'image/png', 1, 1565432068, 1, 2),
+(869, '34_168_1_pink_share_wap.jpg', '/uploads/qrcode/34_168_1_pink_share_wap.jpg', '/uploads/qrcode/34_168_1_pink_share_wap.jpg', '699', 'image/jpeg', 1, 1565432115, 1, 2),
+(870, '2451020190810181515111267.jpg', '/uploads/wap/activity/pink/poster/2451020190810181515111267.jpg', '/uploads/wap/activity/pink/poster/2451020190810181515111267.jpg', '53184', 'image/jpeg', 1, 1565432115, 1, 2),
+(871, '331312019081018161045131.jpg', '/uploads/wap/activity/bargain/poster/331312019081018161045131.jpg', '/uploads/wap/activity/bargain/poster/331312019081018161045131.jpg', '49910', 'image/jpeg', 1, 1565432170, 1, 2),
+(872, '0a3ae3954797617a0775a057d86fc593.jpg', '/uploads/store/comment/20190810/0a3ae3954797617a0775a057d86fc593.jpg', '/./uploads/store/comment/20190810/s_0a3ae3954797617a0775a057d86fc593.jpg', '320008', 'image/jpeg', 1, 1565432260, 1, 2),
+(873, 'f777257f46df041d20c94867d43bd946.jpg', '/uploads/store/comment/20190810/f777257f46df041d20c94867d43bd946.jpg', '/./uploads/store/comment/20190810/s_f777257f46df041d20c94867d43bd946.jpg', '218000', 'image/jpeg', 1, 1565432280, 1, 2),
+(874, 'e2403ab6803f2cae0f9546e0ca85812a.jpg', '/uploads/store/comment/20190810/e2403ab6803f2cae0f9546e0ca85812a.jpg', '/./uploads/store/comment/20190810/s_e2403ab6803f2cae0f9546e0ca85812a.jpg', '277998', 'image/jpeg', 1, 1565432311, 1, 2),
+(875, '8038d20190810181913265267.jpg', '/uploads/wap/activity/bargain/poster/8038d20190810181913265267.jpg', '/uploads/wap/activity/bargain/poster/8038d20190810181913265267.jpg', '50002', 'image/jpeg', 1, 1565432353, 1, 2),
+(876, '17_168_1_product.jpg', '/uploads/routine/product/17_168_1_product.jpg', '/uploads/routine/product/17_168_1_product.jpg', '49854', 'image/jpeg', 1, 1565432614, 1, 2),
+(877, '2c5fa07812b5d4627500fe2de455b569.jpg', '/uploads/store/comment/20190810/2c5fa07812b5d4627500fe2de455b569.jpg', '/./uploads/store/comment/20190810/s_2c5fa07812b5d4627500fe2de455b569.jpg', '267511', 'image/jpeg', 1, 1565432619, 1, 2),
+(878, '3_product_detail_831_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_831_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_831_is_promoter_0.wap.jpg', '591', 'image/jpeg', 1, 1565432650, 1, 2),
+(879, '9_168_1_product.jpg', '/uploads/routine/product/9_168_1_product.jpg', '/uploads/routine/product/9_168_1_product.jpg', '48709', 'image/jpeg', 1, 1565432680, 1, 2),
+(880, '34_168_1_pink_share_routine.jpg', '/uploads/routine/activity/pink/code/34_168_1_pink_share_routine.jpg', '/uploads/routine/activity/pink/code/34_168_1_pink_share_routine.jpg', '49212', 'image/jpeg', 1, 1565432808, 1, 2),
+(881, 'b27d520190810182648985600.jpg', '/uploads/routine/activity/pink/poster/b27d520190810182648985600.jpg', '/uploads/routine/activity/pink/poster/b27d520190810182648985600.jpg', '49286', 'image/jpeg', 1, 1565432808, 1, 2),
+(882, '32_168_1_pink_share_routine.jpg', '/uploads/routine/activity/pink/code/32_168_1_pink_share_routine.jpg', '/uploads/routine/activity/pink/code/32_168_1_pink_share_routine.jpg', '49277', 'image/jpeg', 1, 1565432814, 1, 2),
+(883, '934b520190810182654976422.jpg', '/uploads/routine/activity/pink/poster/934b520190810182654976422.jpg', '/uploads/routine/activity/pink/poster/934b520190810182654976422.jpg', '49261', 'image/jpeg', 1, 1565432814, 1, 2),
+(884, '084a820190810183018463595.jpg', '/uploads/routine/activity/pink/poster/084a820190810183018463595.jpg', '/uploads/routine/activity/pink/poster/084a820190810183018463595.jpg', '49286', 'image/jpeg', 1, 1565433018, 1, 2),
+(885, '83263201908101830213497.jpg', '/uploads/routine/activity/pink/poster/83263201908101830213497.jpg', '/uploads/routine/activity/pink/poster/83263201908101830213497.jpg', '49286', 'image/jpeg', 1, 1565433021, 1, 2),
+(886, 'c7e1220190810183023848627.jpg', '/uploads/routine/activity/pink/poster/c7e1220190810183023848627.jpg', '/uploads/routine/activity/pink/poster/c7e1220190810183023848627.jpg', '49286', 'image/jpeg', 1, 1565433023, 1, 2),
+(887, '11_833_0_product.jpg', '/uploads/routine/product/11_833_0_product.jpg', '/uploads/routine/product/11_833_0_product.jpg', '50279', 'image/jpeg', 1, 1565433832, 1, 2),
+(888, '3_833_0_product.jpg', '/uploads/routine/product/3_833_0_product.jpg', '/uploads/routine/product/3_833_0_product.jpg', '49860', 'image/jpeg', 1, 1565433949, 1, 2),
+(889, '2_833_0_product.jpg', '/uploads/routine/product/2_833_0_product.jpg', '/uploads/routine/product/2_833_0_product.jpg', '49263', 'image/jpeg', 1, 1565433971, 1, 2),
+(890, '7_product_detail_839_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_839_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_839_is_promoter_0.wap.jpg', '605', 'image/jpeg', 1, 1565450580, 1, 2),
+(891, '2_product_detail_839_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_839_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_839_is_promoter_0.wap.jpg', '602', 'image/jpeg', 1, 1565450613, 1, 2),
+(892, '845_0_user_wap.jpg', '/uploads/qrcode/845_0_user_wap.jpg', '/uploads/qrcode/845_0_user_wap.jpg', '510', 'image/jpeg', 1, 1565453013, 1, 2),
+(893, '1195320190811000333993251.jpg', '/uploads/wap/spread/poster/1195320190811000333993251.jpg', '/uploads/wap/spread/poster/1195320190811000333993251.jpg', '82234', 'image/jpeg', 1, 1565453013, 1, 2),
+(894, '8124620190811000333502155.jpg', '/uploads/wap/spread/poster/8124620190811000333502155.jpg', '/uploads/wap/spread/poster/8124620190811000333502155.jpg', '54591', 'image/jpeg', 1, 1565453013, 1, 2),
+(895, 'a8f1220190811000334815907.jpg', '/uploads/wap/spread/poster/a8f1220190811000334815907.jpg', '/uploads/wap/spread/poster/a8f1220190811000334815907.jpg', '75249', 'image/jpeg', 1, 1565453014, 1, 2),
+(896, 'd40d320190811000731776773.jpg', '/uploads/wap/spread/poster/d40d320190811000731776773.jpg', '/uploads/wap/spread/poster/d40d320190811000731776773.jpg', '82234', 'image/jpeg', 1, 1565453251, 1, 2),
+(897, '5cde620190811000731363087.jpg', '/uploads/wap/spread/poster/5cde620190811000731363087.jpg', '/uploads/wap/spread/poster/5cde620190811000731363087.jpg', '54591', 'image/jpeg', 1, 1565453251, 1, 2),
+(898, '3e89e20190811000731385928.jpg', '/uploads/wap/spread/poster/3e89e20190811000731385928.jpg', '/uploads/wap/spread/poster/3e89e20190811000731385928.jpg', '75249', 'image/jpeg', 1, 1565453251, 1, 2),
+(899, '1074c20190811000855922812.jpg', '/uploads/wap/spread/poster/1074c20190811000855922812.jpg', '/uploads/wap/spread/poster/1074c20190811000855922812.jpg', '82234', 'image/jpeg', 1, 1565453335, 1, 2),
+(900, '5bd842019081100085574690.jpg', '/uploads/wap/spread/poster/5bd842019081100085574690.jpg', '/uploads/wap/spread/poster/5bd842019081100085574690.jpg', '54591', 'image/jpeg', 1, 1565453335, 1, 2),
+(901, '44feb20190811000855146371.jpg', '/uploads/wap/spread/poster/44feb20190811000855146371.jpg', '/uploads/wap/spread/poster/44feb20190811000855146371.jpg', '75249', 'image/jpeg', 1, 1565453335, 1, 2),
+(902, '7_product_detail_847_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_847_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_847_is_promoter_0.wap.jpg', '597', 'image/jpeg', 1, 1565454509, 1, 2),
+(903, '8_product_detail_847_is_promoter_0.wap.jpg', '/uploads/qrcode/8_product_detail_847_is_promoter_0.wap.jpg', '/uploads/qrcode/8_product_detail_847_is_promoter_0.wap.jpg', '598', 'image/jpeg', 1, 1565454518, 1, 2),
+(904, '11_product_detail_848_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_848_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_848_is_promoter_0.wap.jpg', '599', 'image/jpeg', 1, 1565454570, 1, 2),
+(905, '3_product_detail_848_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_848_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_848_is_promoter_0.wap.jpg', '602', 'image/jpeg', 1, 1565454579, 1, 2),
+(906, '2_product_detail_848_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_848_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_848_is_promoter_0.wap.jpg', '597', 'image/jpeg', 1, 1565454583, 1, 2),
+(907, '9_product_detail_848_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_848_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_848_is_promoter_0.wap.jpg', '607', 'image/jpeg', 1, 1565454587, 1, 2),
+(908, '8_product_detail_849_is_promoter_0.wap.jpg', '/uploads/qrcode/8_product_detail_849_is_promoter_0.wap.jpg', '/uploads/qrcode/8_product_detail_849_is_promoter_0.wap.jpg', '601', 'image/jpeg', 1, 1565454777, 1, 2),
+(909, '7_product_detail_849_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_849_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_849_is_promoter_0.wap.jpg', '606', 'image/jpeg', 1, 1565454781, 1, 2),
+(910, '3_product_detail_849_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_849_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_849_is_promoter_0.wap.jpg', '599', 'image/jpeg', 1, 1565454790, 1, 2),
+(911, '2_product_detail_849_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_849_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_849_is_promoter_0.wap.jpg', '597', 'image/jpeg', 1, 1565454794, 1, 2),
+(912, '8_product_detail_850_is_promoter_0.wap.jpg', '/uploads/qrcode/8_product_detail_850_is_promoter_0.wap.jpg', '/uploads/qrcode/8_product_detail_850_is_promoter_0.wap.jpg', '603', 'image/jpeg', 1, 1565454803, 1, 2),
+(913, '17_product_detail_853_is_promoter_0.wap.jpg', '/uploads/qrcode/17_product_detail_853_is_promoter_0.wap.jpg', '/uploads/qrcode/17_product_detail_853_is_promoter_0.wap.jpg', '589', 'image/jpeg', 1, 1565455146, 1, 2),
+(914, '11_product_detail_857_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_857_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_857_is_promoter_0.wap.jpg', '588', 'image/jpeg', 1, 1565455866, 1, 2),
+(915, '3_860_0_bargain_share_wap.jpg', '/uploads/qrcode/3_860_0_bargain_share_wap.jpg', '/uploads/qrcode/3_860_0_bargain_share_wap.jpg', '802', 'image/jpeg', 1, 1565471498, 1, 2),
+(916, '8a44820190811051139438328.jpg', '/uploads/wap/activity/bargain/poster/8a44820190811051139438328.jpg', '/uploads/wap/activity/bargain/poster/8a44820190811051139438328.jpg', '50600', 'image/jpeg', 1, 1565471499, 1, 2),
+(917, 'ecf5620190811051201864300.jpg', '/uploads/wap/activity/bargain/poster/ecf5620190811051201864300.jpg', '/uploads/wap/activity/bargain/poster/ecf5620190811051201864300.jpg', '50600', 'image/jpeg', 1, 1565471521, 1, 2),
+(918, '3_product_detail_620_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_620_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_620_is_promoter_0.wap.jpg', '597', 'image/jpeg', 1, 1565490692, 1, 2),
+(919, '3_product_detail_867_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_867_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_867_is_promoter_0.wap.jpg', '602', 'image/jpeg', 1, 1565493144, 1, 2),
+(920, '6_656_0_bargain_share_wap.jpg', '/uploads/qrcode/6_656_0_bargain_share_wap.jpg', '/uploads/qrcode/6_656_0_bargain_share_wap.jpg', '805', 'image/jpeg', 1, 1565496148, 1, 2),
+(921, '2290a20190811120228670209.jpg', '/uploads/wap/activity/bargain/poster/2290a20190811120228670209.jpg', '/uploads/wap/activity/bargain/poster/2290a20190811120228670209.jpg', '51770', 'image/jpeg', 1, 1565496148, 1, 2),
+(922, '3_product_detail_870_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_870_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_870_is_promoter_0.wap.jpg', '598', 'image/jpeg', 1, 1565498982, 1, 2),
+(923, '3_870_0_bargain_share_wap.jpg', '/uploads/qrcode/3_870_0_bargain_share_wap.jpg', '/uploads/qrcode/3_870_0_bargain_share_wap.jpg', '796', 'image/jpeg', 1, 1565499160, 1, 2),
+(924, 'ff0ab2019081112524033110.jpg', '/uploads/wap/activity/bargain/poster/ff0ab2019081112524033110.jpg', '/uploads/wap/activity/bargain/poster/ff0ab2019081112524033110.jpg', '50594', 'image/jpeg', 1, 1565499160, 1, 2),
+(925, '5_656_0_bargain_share_wap.jpg', '/uploads/qrcode/5_656_0_bargain_share_wap.jpg', '/uploads/qrcode/5_656_0_bargain_share_wap.jpg', '788', 'image/jpeg', 1, 1565502332, 1, 2),
+(926, '0531120190811134532649336.jpg', '/uploads/wap/activity/bargain/poster/0531120190811134532649336.jpg', '/uploads/wap/activity/bargain/poster/0531120190811134532649336.jpg', '53373', 'image/jpeg', 1, 1565502332, 1, 2),
+(927, '3_656_0_bargain_share_wap.jpg', '/uploads/qrcode/3_656_0_bargain_share_wap.jpg', '/uploads/qrcode/3_656_0_bargain_share_wap.jpg', '802', 'image/jpeg', 1, 1565502364, 1, 2),
+(928, '90aef20190811134604538896.jpg', '/uploads/wap/activity/bargain/poster/90aef20190811134604538896.jpg', '/uploads/wap/activity/bargain/poster/90aef20190811134604538896.jpg', '50601', 'image/jpeg', 1, 1565502364, 1, 2),
+(929, '7171e20190811134631279604.jpg', '/uploads/wap/activity/bargain/poster/7171e20190811134631279604.jpg', '/uploads/wap/activity/bargain/poster/7171e20190811134631279604.jpg', '50601', 'image/jpeg', 1, 1565502391, 1, 2),
+(930, '7_product_detail_876_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_876_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_876_is_promoter_0.wap.jpg', '594', 'image/jpeg', 1, 1565503241, 1, 2),
+(931, '9_product_detail_876_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_876_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_876_is_promoter_0.wap.jpg', '608', 'image/jpeg', 1, 1565503271, 1, 2),
+(932, '3_product_detail_880_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_880_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_880_is_promoter_0.wap.jpg', '614', 'image/jpeg', 1, 1565508444, 1, 2),
+(933, '886_0_user_wap.jpg', '/uploads/qrcode/886_0_user_wap.jpg', '/uploads/qrcode/886_0_user_wap.jpg', '506', 'image/jpeg', 1, 1565522673, 1, 2),
+(934, '2812e20190811192434460488.jpg', '/uploads/wap/spread/poster/2812e20190811192434460488.jpg', '/uploads/wap/spread/poster/2812e20190811192434460488.jpg', '82690', 'image/jpeg', 1, 1565522674, 1, 2),
+(935, 'cc63820190811192434353152.jpg', '/uploads/wap/spread/poster/cc63820190811192434353152.jpg', '/uploads/wap/spread/poster/cc63820190811192434353152.jpg', '55067', 'image/jpeg', 1, 1565522674, 1, 2),
+(936, '38af820190811192434654393.jpg', '/uploads/wap/spread/poster/38af820190811192434654393.jpg', '/uploads/wap/spread/poster/38af820190811192434654393.jpg', '75721', 'image/jpeg', 1, 1565522674, 1, 2),
+(937, '3_product_detail_889_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_889_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_889_is_promoter_0.wap.jpg', '596', 'image/jpeg', 1, 1565525065, 1, 2),
+(938, '889_0_user_wap.jpg', '/uploads/qrcode/889_0_user_wap.jpg', '/uploads/qrcode/889_0_user_wap.jpg', '511', 'image/jpeg', 1, 1565525449, 1, 2),
+(939, '2ba2520190811201049160920.jpg', '/uploads/wap/spread/poster/2ba2520190811201049160920.jpg', '/uploads/wap/spread/poster/2ba2520190811201049160920.jpg', '83147', 'image/jpeg', 1, 1565525449, 1, 2),
+(940, 'ec20020190811201049559680.jpg', '/uploads/wap/spread/poster/ec20020190811201049559680.jpg', '/uploads/wap/spread/poster/ec20020190811201049559680.jpg', '55522', 'image/jpeg', 1, 1565525449, 1, 2),
+(941, '9fdef20190811201049635931.jpg', '/uploads/wap/spread/poster/9fdef20190811201049635931.jpg', '/uploads/wap/spread/poster/9fdef20190811201049635931.jpg', '76166', 'image/jpeg', 1, 1565525449, 1, 2),
+(942, '3_889_0_bargain_share_wap.jpg', '/uploads/qrcode/3_889_0_bargain_share_wap.jpg', '/uploads/qrcode/3_889_0_bargain_share_wap.jpg', '791', 'image/jpeg', 1, 1565525551, 1, 2),
+(943, 'daa9620190811201232770083.jpg', '/uploads/wap/activity/bargain/poster/daa9620190811201232770083.jpg', '/uploads/wap/activity/bargain/poster/daa9620190811201232770083.jpg', '50223', 'image/jpeg', 1, 1565525552, 1, 2),
+(944, '2_product_detail_894_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_894_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_894_is_promoter_0.wap.jpg', '595', 'image/jpeg', 1, 1565530353, 1, 2),
+(945, '3_product_detail_894_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_894_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_894_is_promoter_0.wap.jpg', '607', 'image/jpeg', 1, 1565530387, 1, 2),
+(946, '42_889_0_pink_share_wap.jpg', '/uploads/qrcode/42_889_0_pink_share_wap.jpg', '/uploads/qrcode/42_889_0_pink_share_wap.jpg', '698', 'image/jpeg', 1, 1565533822, 1, 2),
+(947, 'd09bf20190811223022831039.jpg', '/uploads/wap/activity/pink/poster/d09bf20190811223022831039.jpg', '/uploads/wap/activity/pink/poster/d09bf20190811223022831039.jpg', '53186', 'image/jpeg', 1, 1565533822, 1, 2),
+(948, 'bf2fb20190811223039931258.jpg', '/uploads/wap/activity/pink/poster/bf2fb20190811223039931258.jpg', '/uploads/wap/activity/pink/poster/bf2fb20190811223039931258.jpg', '53186', 'image/jpeg', 1, 1565533839, 1, 2),
+(949, '02aff20190811223730776088.jpg', '/uploads/wap/activity/bargain/poster/02aff20190811223730776088.jpg', '/uploads/wap/activity/bargain/poster/02aff20190811223730776088.jpg', '50223', 'image/jpeg', 1, 1565534250, 1, 2),
+(950, '542_0_user_wap.jpg', '/uploads/qrcode/542_0_user_wap.jpg', '/uploads/qrcode/542_0_user_wap.jpg', '510', 'image/jpeg', 1, 1565536324, 1, 2),
+(951, '3d01720190811231204288392.jpg', '/uploads/wap/spread/poster/3d01720190811231204288392.jpg', '/uploads/wap/spread/poster/3d01720190811231204288392.jpg', '82185', 'image/jpeg', 1, 1565536324, 1, 2),
+(952, '70feb20190811231205974151.jpg', '/uploads/wap/spread/poster/70feb20190811231205974151.jpg', '/uploads/wap/spread/poster/70feb20190811231205974151.jpg', '54551', 'image/jpeg', 1, 1565536325, 1, 2),
+(953, 'ba2fd20190811231205780691.jpg', '/uploads/wap/spread/poster/ba2fd20190811231205780691.jpg', '/uploads/wap/spread/poster/ba2fd20190811231205780691.jpg', '75204', 'image/jpeg', 1, 1565536325, 1, 2),
+(954, '3_product_detail_542_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_542_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_542_is_promoter_0.wap.jpg', '599', 'image/jpeg', 1, 1565536500, 1, 2),
+(955, '3_902_0_bargain_share_wap.jpg', '/uploads/qrcode/3_902_0_bargain_share_wap.jpg', '/uploads/qrcode/3_902_0_bargain_share_wap.jpg', '797', 'image/jpeg', 1, 1565544490, 1, 2),
+(956, 'c457d2019081201281088652.jpg', '/uploads/wap/activity/bargain/poster/c457d2019081201281088652.jpg', '/uploads/wap/activity/bargain/poster/c457d2019081201281088652.jpg', '50639', 'image/jpeg', 1, 1565544490, 1, 2),
+(957, '3_product_detail_905_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_905_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_905_is_promoter_0.wap.jpg', '605', 'image/jpeg', 1, 1565554145, 1, 2),
+(958, '9_product_detail_907_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_907_is_promoter_0.wap.jpg', '/uploads/qrcode/9_product_detail_907_is_promoter_0.wap.jpg', '599', 'image/jpeg', 1, 1565555301, 1, 2),
+(959, '7_product_detail_910_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_910_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_910_is_promoter_0.wap.jpg', '601', 'image/jpeg', 1, 1565556639, 1, 2),
+(960, '11_product_detail_853_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_853_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_853_is_promoter_0.wap.jpg', '596', 'image/jpeg', 1, 1565560359, 1, 2),
+(961, '2_product_detail_913_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_913_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_913_is_promoter_0.wap.jpg', '599', 'image/jpeg', 1, 1565561165, 1, 2),
+(962, '590_0_user_wap.jpg', '/uploads/qrcode/590_0_user_wap.jpg', '/uploads/qrcode/590_0_user_wap.jpg', '515', 'image/jpeg', 1, 1565561704, 1, 2),
+(963, 'e03082019081206150434985.jpg', '/uploads/wap/spread/poster/e03082019081206150434985.jpg', '/uploads/wap/spread/poster/e03082019081206150434985.jpg', '82959', 'image/jpeg', 1, 1565561704, 1, 2),
+(964, 'ff49c20190812061504688476.jpg', '/uploads/wap/spread/poster/ff49c20190812061504688476.jpg', '/uploads/wap/spread/poster/ff49c20190812061504688476.jpg', '55333', 'image/jpeg', 1, 1565561704, 1, 2),
+(965, '4a53320190812061504359870.jpg', '/uploads/wap/spread/poster/4a53320190812061504359870.jpg', '/uploads/wap/spread/poster/4a53320190812061504359870.jpg', '75989', 'image/jpeg', 1, 1565561704, 1, 2),
+(966, '11_product_detail_915_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_915_is_promoter_0.wap.jpg', '/uploads/qrcode/11_product_detail_915_is_promoter_0.wap.jpg', '600', 'image/jpeg', 1, 1565562252, 1, 2),
+(967, '17_product_detail_915_is_promoter_0.wap.jpg', '/uploads/qrcode/17_product_detail_915_is_promoter_0.wap.jpg', '/uploads/qrcode/17_product_detail_915_is_promoter_0.wap.jpg', '602', 'image/jpeg', 1, 1565562257, 1, 2),
+(968, '7_product_detail_915_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_915_is_promoter_0.wap.jpg', '/uploads/qrcode/7_product_detail_915_is_promoter_0.wap.jpg', '597', 'image/jpeg', 1, 1565562277, 1, 2),
+(969, '2_product_detail_915_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_915_is_promoter_0.wap.jpg', '/uploads/qrcode/2_product_detail_915_is_promoter_0.wap.jpg', '600', 'image/jpeg', 1, 1565562291, 1, 2),
+(970, '3_product_detail_915_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_915_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_915_is_promoter_0.wap.jpg', '597', 'image/jpeg', 1, 1565562303, 1, 2),
+(971, '8_product_detail_915_is_promoter_0.wap.jpg', '/uploads/qrcode/8_product_detail_915_is_promoter_0.wap.jpg', '/uploads/qrcode/8_product_detail_915_is_promoter_0.wap.jpg', '593', 'image/jpeg', 1, 1565562317, 1, 2),
+(972, '3_919_0_bargain_share_wap.jpg', '/uploads/qrcode/3_919_0_bargain_share_wap.jpg', '/uploads/qrcode/3_919_0_bargain_share_wap.jpg', '809', 'image/jpeg', 1, 1565566703, 1, 2),
+(973, '2c8ef20190812073823929053.jpg', '/uploads/wap/activity/bargain/poster/2c8ef20190812073823929053.jpg', '/uploads/wap/activity/bargain/poster/2c8ef20190812073823929053.jpg', '49925', 'image/jpeg', 1, 1565566703, 1, 2),
+(974, '919_0_user.jpg', '/uploads/routine/spread/code/919_0_user.jpg', '/uploads/routine/spread/code/919_0_user.jpg', '50422', 'image/jpeg', 1, 1565570689, 1, 1),
+(975, 'dfa0320190812084709170125.jpg', '/uploads/wap/spread/poster/dfa0320190812084709170125.jpg', '/uploads/wap/spread/poster/dfa0320190812084709170125.jpg', '82690', 'image/jpeg', 1, 1565570829, 1, 2),
+(976, '7f14120190812084709227906.jpg', '/uploads/wap/spread/poster/7f14120190812084709227906.jpg', '/uploads/wap/spread/poster/7f14120190812084709227906.jpg', '55067', 'image/jpeg', 1, 1565570829, 1, 2),
+(977, 'cdf1e20190812084709897368.jpg', '/uploads/wap/spread/poster/cdf1e20190812084709897368.jpg', '/uploads/wap/spread/poster/cdf1e20190812084709897368.jpg', '75721', 'image/jpeg', 1, 1565570829, 1, 2),
+(978, 'ebd6d20190812090408364338.jpg', '/uploads/wap/spread/poster/ebd6d20190812090408364338.jpg', '/uploads/wap/spread/poster/ebd6d20190812090408364338.jpg', '82690', 'image/jpeg', 1, 1565571848, 1, 2),
+(979, '8804f20190812090408578257.jpg', '/uploads/wap/spread/poster/8804f20190812090408578257.jpg', '/uploads/wap/spread/poster/8804f20190812090408578257.jpg', '55067', 'image/jpeg', 1, 1565571848, 1, 2),
+(980, '7e33120190812090408213683.jpg', '/uploads/wap/spread/poster/7e33120190812090408213683.jpg', '/uploads/wap/spread/poster/7e33120190812090408213683.jpg', '75721', 'image/jpeg', 1, 1565571848, 1, 2),
+(981, '540_0_user_wap.jpg', '/uploads/qrcode/540_0_user_wap.jpg', '/uploads/qrcode/540_0_user_wap.jpg', '507', 'image/jpeg', 1, 1565573895, 1, 2),
+(982, '35fa420190812093815785442.jpg', '/uploads/wap/spread/poster/35fa420190812093815785442.jpg', '/uploads/wap/spread/poster/35fa420190812093815785442.jpg', '82171', 'image/jpeg', 1, 1565573895, 1, 2),
+(983, '0ae0b20190812093815566253.jpg', '/uploads/wap/spread/poster/0ae0b20190812093815566253.jpg', '/uploads/wap/spread/poster/0ae0b20190812093815566253.jpg', '54539', 'image/jpeg', 1, 1565573895, 1, 2),
+(984, '9b89b20190812093815116572.jpg', '/uploads/wap/spread/poster/9b89b20190812093815116572.jpg', '/uploads/wap/spread/poster/9b89b20190812093815116572.jpg', '75195', 'image/jpeg', 1, 1565573895, 1, 2),
+(985, '3_product_detail_540_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_540_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_540_is_promoter_0.wap.jpg', '605', 'image/jpeg', 1, 1565574033, 1, 2);
+INSERT INTO `eb_system_attachment` (`att_id`, `name`, `att_dir`, `satt_dir`, `att_size`, `att_type`, `pid`, `time`, `image_type`, `module_type`) VALUES
+(986, '3_537_0_bargain_share_wap.jpg', '/uploads/qrcode/3_537_0_bargain_share_wap.jpg', '/uploads/qrcode/3_537_0_bargain_share_wap.jpg', '809', 'image/jpeg', 1, 1565574158, 1, 2),
+(987, 'e25cf20190812094238721752.jpg', '/uploads/wap/activity/bargain/poster/e25cf20190812094238721752.jpg', '/uploads/wap/activity/bargain/poster/e25cf20190812094238721752.jpg', '50736', 'image/jpeg', 1, 1565574158, 1, 2),
+(988, '43_537_0_pink_share_wap.jpg', '/uploads/qrcode/43_537_0_pink_share_wap.jpg', '/uploads/qrcode/43_537_0_pink_share_wap.jpg', '681', 'image/jpeg', 1, 1565574829, 1, 2),
+(989, '38a7720190812095349249477.jpg', '/uploads/wap/activity/pink/poster/38a7720190812095349249477.jpg', '/uploads/wap/activity/pink/poster/38a7720190812095349249477.jpg', '58229', 'image/jpeg', 1, 1565574829, 1, 2),
+(990, '605_0_user_wap.jpg', '/uploads/qrcode/605_0_user_wap.jpg', '/uploads/qrcode/605_0_user_wap.jpg', '512', 'image/jpeg', 1, 1565576532, 1, 2),
+(991, '65d9020190812102212692546.jpg', '/uploads/wap/spread/poster/65d9020190812102212692546.jpg', '/uploads/wap/spread/poster/65d9020190812102212692546.jpg', '82205', 'image/jpeg', 1, 1565576532, 1, 2),
+(992, 'c793b2019081210221357868.jpg', '/uploads/wap/spread/poster/c793b2019081210221357868.jpg', '/uploads/wap/spread/poster/c793b2019081210221357868.jpg', '54568', 'image/jpeg', 1, 1565576533, 1, 2),
+(993, 'de70920190812102213973153.jpg', '/uploads/wap/spread/poster/de70920190812102213973153.jpg', '/uploads/wap/spread/poster/de70920190812102213973153.jpg', '75222', 'image/jpeg', 1, 1565576533, 1, 2),
+(994, 'ee38920190812102318352786.jpg', '/uploads/wap/spread/poster/ee38920190812102318352786.jpg', '/uploads/wap/spread/poster/ee38920190812102318352786.jpg', '82205', 'image/jpeg', 1, 1565576598, 1, 2),
+(995, '91f5720190812102318718301.jpg', '/uploads/wap/spread/poster/91f5720190812102318718301.jpg', '/uploads/wap/spread/poster/91f5720190812102318718301.jpg', '54568', 'image/jpeg', 1, 1565576598, 1, 2),
+(996, 'dd50e20190812102318408274.jpg', '/uploads/wap/spread/poster/dd50e20190812102318408274.jpg', '/uploads/wap/spread/poster/dd50e20190812102318408274.jpg', '75222', 'image/jpeg', 1, 1565576598, 1, 2),
+(997, '699_0_user_routine.jpg', '/uploads/routine/spread/code/699_0_user_routine.jpg', '/uploads/routine/spread/code/699_0_user_routine.jpg', '49180', 'image/jpeg', 1, 1565579307, 1, 2),
+(998, '2f3c620190812110827838514.jpg', '/uploads/routine/spread/poster/2f3c620190812110827838514.jpg', '/uploads/routine/spread/poster/2f3c620190812110827838514.jpg', '81246', 'image/jpeg', 1, 1565579307, 1, 2),
+(999, '0ec2920190812110827464474.jpg', '/uploads/routine/spread/poster/0ec2920190812110827464474.jpg', '/uploads/routine/spread/poster/0ec2920190812110827464474.jpg', '53615', 'image/jpeg', 1, 1565579307, 1, 2),
+(1000, '6c4bb20190812110827192077.jpg', '/uploads/routine/spread/poster/6c4bb20190812110827192077.jpg', '/uploads/routine/spread/poster/6c4bb20190812110827192077.jpg', '74265', 'image/jpeg', 1, 1565579307, 1, 2),
+(1001, 'ded65c06121d291c75d605b956fbe473.jpeg', '/uploads/store/comment/20190812/ded65c06121d291c75d605b956fbe473.jpeg', '/./uploads/store/comment/20190812/s_ded65c06121d291c75d605b956fbe473.jpeg', '102985', 'image/jpeg', 1, 1565579742, 1, 2),
+(1002, '603_1_user_wap.jpg', '/uploads/qrcode/603_1_user_wap.jpg', '/uploads/qrcode/603_1_user_wap.jpg', '510', 'image/jpeg', 1, 1565579806, 1, 2),
+(1003, '2c2fb20190812111646208765.jpg', '/uploads/wap/spread/poster/2c2fb20190812111646208765.jpg', '/uploads/wap/spread/poster/2c2fb20190812111646208765.jpg', '82104', 'image/jpeg', 1, 1565579806, 1, 2),
+(1004, 'f4e362019081211164613665.jpg', '/uploads/wap/spread/poster/f4e362019081211164613665.jpg', '/uploads/wap/spread/poster/f4e362019081211164613665.jpg', '54475', 'image/jpeg', 1, 1565579806, 1, 2),
+(1005, 'e4d8120190812111647944050.jpg', '/uploads/wap/spread/poster/e4d8120190812111647944050.jpg', '/uploads/wap/spread/poster/e4d8120190812111647944050.jpg', '75131', 'image/jpeg', 1, 1565579807, 1, 2),
+(1006, '3_937_0_bargain_share_wap.jpg', '/uploads/qrcode/3_937_0_bargain_share_wap.jpg', '/uploads/qrcode/3_937_0_bargain_share_wap.jpg', '813', 'image/jpeg', 1, 1565580519, 1, 2),
+(1007, '6938620190812112840524560.jpg', '/uploads/wap/activity/bargain/poster/6938620190812112840524560.jpg', '/uploads/wap/activity/bargain/poster/6938620190812112840524560.jpg', '51121', 'image/jpeg', 1, 1565580520, 1, 2),
+(1008, '0bfce20190812112856858662.jpg', '/uploads/wap/activity/bargain/poster/0bfce20190812112856858662.jpg', '/uploads/wap/activity/bargain/poster/0bfce20190812112856858662.jpg', '51121', 'image/jpeg', 1, 1565580536, 1, 2),
+(1009, '3_942_0_bargain_share_routine.jpg', '/uploads/routine/activity/bargain/code/3_942_0_bargain_share_routine.jpg', '/uploads/routine/activity/bargain/code/3_942_0_bargain_share_routine.jpg', '54397', 'image/jpeg', 1, 1565581718, 1, 2),
+(1010, 'b427420190812114838539019.jpg', '/uploads/routine/activity/bargain/poster/b427420190812114838539019.jpg', '/uploads/routine/activity/bargain/poster/b427420190812114838539019.jpg', '46901', 'image/jpeg', 1, 1565581718, 1, 2),
+(1011, 'd048620190812114845242988.jpg', '/uploads/routine/activity/bargain/poster/d048620190812114845242988.jpg', '/uploads/routine/activity/bargain/poster/d048620190812114845242988.jpg', '46901', 'image/jpeg', 1, 1565581725, 1, 2),
+(1012, '077fd20190812114850527915.jpg', '/uploads/routine/activity/bargain/poster/077fd20190812114850527915.jpg', '/uploads/routine/activity/bargain/poster/077fd20190812114850527915.jpg', '46901', 'image/jpeg', 1, 1565581730, 1, 2),
+(1013, 'da6ea2019081211485640638.jpg', '/uploads/routine/activity/bargain/poster/da6ea2019081211485640638.jpg', '/uploads/routine/activity/bargain/poster/da6ea2019081211485640638.jpg', '46901', 'image/jpeg', 1, 1565581736, 1, 2),
+(1014, 'bbcbf20190812114859421028.jpg', '/uploads/routine/activity/bargain/poster/bbcbf20190812114859421028.jpg', '/uploads/routine/activity/bargain/poster/bbcbf20190812114859421028.jpg', '46901', 'image/jpeg', 1, 1565581739, 1, 2),
+(1015, '676_0_user_routine.jpg', '/uploads/routine/spread/code/676_0_user_routine.jpg', '/uploads/routine/spread/code/676_0_user_routine.jpg', '48486', 'image/jpeg', 1, 1565581750, 1, 2),
+(1016, 'bcc2b20190812114910785849.jpg', '/uploads/routine/spread/poster/bcc2b20190812114910785849.jpg', '/uploads/routine/spread/poster/bcc2b20190812114910785849.jpg', '80757', 'image/jpeg', 1, 1565581750, 1, 2),
+(1017, 'f330420190812114910477986.jpg', '/uploads/routine/spread/poster/f330420190812114910477986.jpg', '/uploads/routine/spread/poster/f330420190812114910477986.jpg', '53132', 'image/jpeg', 1, 1565581750, 1, 2),
+(1018, 'af8d120190812114911160419.jpg', '/uploads/routine/spread/poster/af8d120190812114911160419.jpg', '/uploads/routine/spread/poster/af8d120190812114911160419.jpg', '73774', 'image/jpeg', 1, 1565581751, 1, 2),
+(1019, '3_942_0_bargain_share_wap.jpg', '/uploads/qrcode/3_942_0_bargain_share_wap.jpg', '/uploads/qrcode/3_942_0_bargain_share_wap.jpg', '801', 'image/jpeg', 1, 1565581948, 1, 2),
+(1020, '3f2df20190812115229656263.jpg', '/uploads/wap/activity/bargain/poster/3f2df20190812115229656263.jpg', '/uploads/wap/activity/bargain/poster/3f2df20190812115229656263.jpg', '50486', 'image/jpeg', 1, 1565581949, 1, 2),
+(1021, '562_0_user_wap.jpg', '/uploads/qrcode/562_0_user_wap.jpg', '/uploads/qrcode/562_0_user_wap.jpg', '507', 'image/jpeg', 1, 1565582371, 1, 2),
+(1022, '4fd5a20190812115931198262.jpg', '/uploads/wap/spread/poster/4fd5a20190812115931198262.jpg', '/uploads/wap/spread/poster/4fd5a20190812115931198262.jpg', '82416', 'image/jpeg', 1, 1565582371, 1, 2),
+(1023, 'f64b220190812115932401236.jpg', '/uploads/wap/spread/poster/f64b220190812115932401236.jpg', '/uploads/wap/spread/poster/f64b220190812115932401236.jpg', '54794', 'image/jpeg', 1, 1565582372, 1, 2),
+(1024, '7369f2019081211593214602.jpg', '/uploads/wap/spread/poster/7369f2019081211593214602.jpg', '/uploads/wap/spread/poster/7369f2019081211593214602.jpg', '75437', 'image/jpeg', 1, 1565582372, 1, 2),
+(1025, '6_815_0_bargain_share_wap.jpg', '/uploads/qrcode/6_815_0_bargain_share_wap.jpg', '/uploads/qrcode/6_815_0_bargain_share_wap.jpg', '802', 'image/jpeg', 1, 1565582393, 1, 2),
+(1026, '0e18920190812115953358608.jpg', '/uploads/wap/activity/bargain/poster/0e18920190812115953358608.jpg', '/uploads/wap/activity/bargain/poster/0e18920190812115953358608.jpg', '51083', 'image/jpeg', 1, 1565582393, 1, 2),
+(1027, 'd5d7f20190812120004827894.jpg', '/uploads/wap/activity/bargain/poster/d5d7f20190812120004827894.jpg', '/uploads/wap/activity/bargain/poster/d5d7f20190812120004827894.jpg', '51083', 'image/jpeg', 1, 1565582404, 1, 2),
+(1028, '82f5e2019081212001246371.jpg', '/uploads/wap/activity/bargain/poster/82f5e2019081212001246371.jpg', '/uploads/wap/activity/bargain/poster/82f5e2019081212001246371.jpg', '51083', 'image/jpeg', 1, 1565582412, 1, 2),
+(1029, 'b4f8e20190812120028725695.jpg', '/uploads/wap/activity/bargain/poster/b4f8e20190812120028725695.jpg', '/uploads/wap/activity/bargain/poster/b4f8e20190812120028725695.jpg', '51083', 'image/jpeg', 1, 1565582428, 1, 2),
+(1030, '9183120190812120054602859.jpg', '/uploads/wap/activity/bargain/poster/9183120190812120054602859.jpg', '/uploads/wap/activity/bargain/poster/9183120190812120054602859.jpg', '51083', 'image/jpeg', 1, 1565582454, 1, 2),
+(1031, '3_943_0_product.jpg', '/uploads/routine/product/3_943_0_product.jpg', '/uploads/routine/product/3_943_0_product.jpg', '48092', 'image/jpeg', 1, 1565582837, 1, 2),
+(1032, '2_943_0_product.jpg', '/uploads/routine/product/2_943_0_product.jpg', '/uploads/routine/product/2_943_0_product.jpg', '49042', 'image/jpeg', 1, 1565582843, 1, 2),
+(1033, '699_0_user_wap.jpg', '/uploads/qrcode/699_0_user_wap.jpg', '/uploads/qrcode/699_0_user_wap.jpg', '510', 'image/jpeg', 1, 1565591430, 1, 2),
+(1034, '494ba20190812143030558680.jpg', '/uploads/wap/spread/poster/494ba20190812143030558680.jpg', '/uploads/wap/spread/poster/494ba20190812143030558680.jpg', '82213', 'image/jpeg', 1, 1565591430, 1, 2),
+(1035, 'aafd820190812143030365946.jpg', '/uploads/wap/spread/poster/aafd820190812143030365946.jpg', '/uploads/wap/spread/poster/aafd820190812143030365946.jpg', '54581', 'image/jpeg', 1, 1565591430, 1, 2),
+(1036, '88ccf20190812143030726635.jpg', '/uploads/wap/spread/poster/88ccf20190812143030726635.jpg', '/uploads/wap/spread/poster/88ccf20190812143030726635.jpg', '75241', 'image/jpeg', 1, 1565591430, 1, 2),
+(1037, '9_951_0_product.jpg', '/uploads/routine/product/9_951_0_product.jpg', '/uploads/routine/product/9_951_0_product.jpg', '47632', 'image/jpeg', 1, 1565591862, 1, 2),
+(1038, '7_950_0_product.jpg', '/uploads/routine/product/7_950_0_product.jpg', '/uploads/routine/product/7_950_0_product.jpg', '50420', 'image/jpeg', 1, 1565592002, 1, 2),
+(1039, '17_955_0_product.jpg', '/uploads/routine/product/17_955_0_product.jpg', '/uploads/routine/product/17_955_0_product.jpg', '49362', 'image/jpeg', 1, 1565596373, 1, 2),
+(1040, '8_789_0_product.jpg', '/uploads/routine/product/8_789_0_product.jpg', '/uploads/routine/product/8_789_0_product.jpg', '49092', 'image/jpeg', 1, 1565605610, 1, 2),
+(1041, '3_789_0_product.jpg', '/uploads/routine/product/3_789_0_product.jpg', '/uploads/routine/product/3_789_0_product.jpg', '48001', 'image/jpeg', 1, 1565605613, 1, 2),
+(1042, '11_969_0_product.jpg', '/uploads/routine/product/11_969_0_product.jpg', '/uploads/routine/product/11_969_0_product.jpg', '49494', 'image/jpeg', 1, 1565605810, 1, 2),
+(1043, '972_0_user_routine.jpg', '/uploads/routine/spread/code/972_0_user_routine.jpg', '/uploads/routine/spread/code/972_0_user_routine.jpg', '50814', 'image/jpeg', 1, 1565608747, 1, 2),
+(1044, 'ba2fd20190812191907219032.jpg', '/uploads/routine/spread/poster/ba2fd20190812191907219032.jpg', '/uploads/routine/spread/poster/ba2fd20190812191907219032.jpg', '81724', 'image/jpeg', 1, 1565608747, 1, 2),
+(1045, '1680820190812191908277791.jpg', '/uploads/routine/spread/poster/1680820190812191908277791.jpg', '/uploads/routine/spread/poster/1680820190812191908277791.jpg', '54092', 'image/jpeg', 1, 1565608748, 1, 2),
+(1046, '4e68120190812191908412073.jpg', '/uploads/routine/spread/poster/4e68120190812191908412073.jpg', '/uploads/routine/spread/poster/4e68120190812191908412073.jpg', '74737', 'image/jpeg', 1, 1565608748, 1, 2),
+(1047, '11_972_0_product.jpg', '/uploads/routine/product/11_972_0_product.jpg', '/uploads/routine/product/11_972_0_product.jpg', '49410', 'image/jpeg', 1, 1565609028, 1, 2),
+(1048, '9_972_0_product.jpg', '/uploads/routine/product/9_972_0_product.jpg', '/uploads/routine/product/9_972_0_product.jpg', '47840', 'image/jpeg', 1, 1565609039, 1, 2),
+(1049, '9547a20190812200928992941.jpg', '/uploads/routine/spread/poster/9547a20190812200928992941.jpg', '/uploads/routine/spread/poster/9547a20190812200928992941.jpg', '81724', 'image/jpeg', 1, 1565611768, 1, 2),
+(1050, '6451720190812200929589618.jpg', '/uploads/routine/spread/poster/6451720190812200929589618.jpg', '/uploads/routine/spread/poster/6451720190812200929589618.jpg', '54092', 'image/jpeg', 1, 1565611769, 1, 2),
+(1051, '11f522019081220092991035.jpg', '/uploads/routine/spread/poster/11f522019081220092991035.jpg', '/uploads/routine/spread/poster/11f522019081220092991035.jpg', '74737', 'image/jpeg', 1, 1565611769, 1, 2),
+(1052, '9d26820190812201438728214.jpg', '/uploads/routine/spread/poster/9d26820190812201438728214.jpg', '/uploads/routine/spread/poster/9d26820190812201438728214.jpg', '81724', 'image/jpeg', 1, 1565612078, 1, 2),
+(1053, 'f182220190812201438739047.jpg', '/uploads/routine/spread/poster/f182220190812201438739047.jpg', '/uploads/routine/spread/poster/f182220190812201438739047.jpg', '54092', 'image/jpeg', 1, 1565612078, 1, 2),
+(1054, '4fc4120190812201439330707.jpg', '/uploads/routine/spread/poster/4fc4120190812201439330707.jpg', '/uploads/routine/spread/poster/4fc4120190812201439330707.jpg', '74737', 'image/jpeg', 1, 1565612079, 1, 2),
+(1055, '8_972_0_product.jpg', '/uploads/routine/product/8_972_0_product.jpg', '/uploads/routine/product/8_972_0_product.jpg', '47851', 'image/jpeg', 1, 1565612717, 1, 2),
+(1056, '0554620190812222200156460.jpg', '/uploads/routine/spread/poster/0554620190812222200156460.jpg', '/uploads/routine/spread/poster/0554620190812222200156460.jpg', '81246', 'image/jpeg', 1, 1565619720, 1, 2),
+(1057, 'ada5e20190812222200994498.jpg', '/uploads/routine/spread/poster/ada5e20190812222200994498.jpg', '/uploads/routine/spread/poster/ada5e20190812222200994498.jpg', '53615', 'image/jpeg', 1, 1565619720, 1, 2),
+(1058, 'c11cb20190812222201668983.jpg', '/uploads/routine/spread/poster/c11cb20190812222201668983.jpg', '/uploads/routine/spread/poster/c11cb20190812222201668983.jpg', '74265', 'image/jpeg', 1, 1565619721, 1, 2),
+(1059, '987_0_user_routine.jpg', '/uploads/routine/spread/code/987_0_user_routine.jpg', '/uploads/routine/spread/code/987_0_user_routine.jpg', '49001', 'image/jpeg', 1, 1565630688, 1, 2),
+(1060, '426bf2019081301244949270.jpg', '/uploads/routine/spread/poster/426bf2019081301244949270.jpg', '/uploads/routine/spread/poster/426bf2019081301244949270.jpg', '81302', 'image/jpeg', 1, 1565630689, 1, 2),
+(1061, 'f99952019081301244910992.jpg', '/uploads/routine/spread/poster/f99952019081301244910992.jpg', '/uploads/routine/spread/poster/f99952019081301244910992.jpg', '53675', 'image/jpeg', 1, 1565630689, 1, 2),
+(1062, '9a84a2019081301244941716.jpg', '/uploads/routine/spread/poster/9a84a2019081301244941716.jpg', '/uploads/routine/spread/poster/9a84a2019081301244941716.jpg', '74325', 'image/jpeg', 1, 1565630689, 1, 2),
+(1063, '04fcc20190813012953604889.jpg', '/uploads/routine/spread/poster/04fcc20190813012953604889.jpg', '/uploads/routine/spread/poster/04fcc20190813012953604889.jpg', '81302', 'image/jpeg', 1, 1565630993, 1, 2),
+(1064, '45c1620190813012953732828.jpg', '/uploads/routine/spread/poster/45c1620190813012953732828.jpg', '/uploads/routine/spread/poster/45c1620190813012953732828.jpg', '53675', 'image/jpeg', 1, 1565630993, 1, 2),
+(1065, '3bf7520190813012954615331.jpg', '/uploads/routine/spread/poster/3bf7520190813012954615331.jpg', '/uploads/routine/spread/poster/3bf7520190813012954615331.jpg', '74325', 'image/jpeg', 1, 1565630994, 1, 2),
+(1066, '3_542_0_bargain_share_wap.jpg', '/uploads/qrcode/3_542_0_bargain_share_wap.jpg', '/uploads/qrcode/3_542_0_bargain_share_wap.jpg', '805', 'image/jpeg', 1, 1565632318, 1, 2),
+(1067, 'b628320190813015158624684.jpg', '/uploads/wap/activity/bargain/poster/b628320190813015158624684.jpg', '/uploads/wap/activity/bargain/poster/b628320190813015158624684.jpg', '50437', 'image/jpeg', 1, 1565632318, 1, 2),
+(1068, 'a9cf420190813015220437554.jpg', '/uploads/wap/activity/bargain/poster/a9cf420190813015220437554.jpg', '/uploads/wap/activity/bargain/poster/a9cf420190813015220437554.jpg', '50437', 'image/jpeg', 1, 1565632340, 1, 2),
+(1069, '0379320190813015224643794.jpg', '/uploads/wap/activity/bargain/poster/0379320190813015224643794.jpg', '/uploads/wap/activity/bargain/poster/0379320190813015224643794.jpg', '50437', 'image/jpeg', 1, 1565632344, 1, 2),
+(1070, '3_988_0_product.jpg', '/uploads/routine/product/3_988_0_product.jpg', '/uploads/routine/product/3_988_0_product.jpg', '50083', 'image/jpeg', 1, 1565637717, 1, 2),
+(1071, '2_988_0_product.jpg', '/uploads/routine/product/2_988_0_product.jpg', '/uploads/routine/product/2_988_0_product.jpg', '49634', 'image/jpeg', 1, 1565637742, 1, 2),
+(1072, '9_990_0_product.jpg', '/uploads/routine/product/9_990_0_product.jpg', '/uploads/routine/product/9_990_0_product.jpg', '49286', 'image/jpeg', 1, 1565638574, 1, 2),
+(1073, '9_992_0_product.jpg', '/uploads/routine/product/9_992_0_product.jpg', '/uploads/routine/product/9_992_0_product.jpg', '47839', 'image/jpeg', 1, 1565641272, 1, 2),
+(1074, '2_995_0_product.jpg', '/uploads/routine/product/2_995_0_product.jpg', '/uploads/routine/product/2_995_0_product.jpg', '47728', 'image/jpeg', 1, 1565642558, 1, 2),
+(1075, '3_996_0_product.jpg', '/uploads/routine/product/3_996_0_product.jpg', '/uploads/routine/product/3_996_0_product.jpg', '49407', 'image/jpeg', 1, 1565642904, 1, 2),
+(1076, '17_997_0_product.jpg', '/uploads/routine/product/17_997_0_product.jpg', '/uploads/routine/product/17_997_0_product.jpg', '48691', 'image/jpeg', 1, 1565644929, 1, 2),
+(1077, '11_997_0_product.jpg', '/uploads/routine/product/11_997_0_product.jpg', '/uploads/routine/product/11_997_0_product.jpg', '49112', 'image/jpeg', 1, 1565644935, 1, 2),
+(1078, '8_997_0_product.jpg', '/uploads/routine/product/8_997_0_product.jpg', '/uploads/routine/product/8_997_0_product.jpg', '49628', 'image/jpeg', 1, 1565644953, 1, 2),
+(1079, '7_997_0_product.jpg', '/uploads/routine/product/7_997_0_product.jpg', '/uploads/routine/product/7_997_0_product.jpg', '48648', 'image/jpeg', 1, 1565644966, 1, 2),
+(1080, '9_997_0_product.jpg', '/uploads/routine/product/9_997_0_product.jpg', '/uploads/routine/product/9_997_0_product.jpg', '48576', 'image/jpeg', 1, 1565644984, 1, 2),
+(1081, '3_997_0_product.jpg', '/uploads/routine/product/3_997_0_product.jpg', '/uploads/routine/product/3_997_0_product.jpg', '48090', 'image/jpeg', 1, 1565644997, 1, 2),
+(1082, '8_999_0_product.jpg', '/uploads/routine/product/8_999_0_product.jpg', '/uploads/routine/product/8_999_0_product.jpg', '47820', 'image/jpeg', 1, 1565645445, 1, 2),
+(1083, '7_1003_0_product.jpg', '/uploads/routine/product/7_1003_0_product.jpg', '/uploads/routine/product/7_1003_0_product.jpg', '49305', 'image/jpeg', 1, 1565650132, 1, 2),
+(1084, 'd728520190813101258428972.jpg', '/uploads/wap/activity/bargain/poster/d728520190813101258428972.jpg', '/uploads/wap/activity/bargain/poster/d728520190813101258428972.jpg', '50468', 'image/jpeg', 1, 1565662378, 1, 2),
+(1085, 'ba3c720190813101520670747.jpg', '/uploads/wap/activity/bargain/poster/ba3c720190813101520670747.jpg', '/uploads/wap/activity/bargain/poster/ba3c720190813101520670747.jpg', '50549', 'image/jpeg', 1, 1565662520, 1, 2),
+(1086, 'dd10120190813101647171912.jpg', '/uploads/wap/activity/bargain/poster/dd10120190813101647171912.jpg', '/uploads/wap/activity/bargain/poster/dd10120190813101647171912.jpg', '50549', 'image/jpeg', 1, 1565662607, 1, 2),
+(1087, 'd935920190813102427641575.jpg', '/uploads/wap/activity/bargain/poster/d935920190813102427641575.jpg', '/uploads/wap/activity/bargain/poster/d935920190813102427641575.jpg', '50549', 'image/jpeg', 1, 1565663067, 1, 2),
+(1088, 'eaa3220190813102452150266.jpg', '/uploads/wap/activity/bargain/poster/eaa3220190813102452150266.jpg', '/uploads/wap/activity/bargain/poster/eaa3220190813102452150266.jpg', '50979', 'image/jpeg', 1, 1565663092, 1, 2),
+(1089, '71ddb20190813102508669841.jpg', '/uploads/wap/activity/bargain/poster/71ddb20190813102508669841.jpg', '/uploads/wap/activity/bargain/poster/71ddb20190813102508669841.jpg', '50549', 'image/jpeg', 1, 1565663108, 1, 2),
+(1090, 'c6e8120190813102610920888.jpg', '/uploads/wap/activity/bargain/poster/c6e8120190813102610920888.jpg', '/uploads/wap/activity/bargain/poster/c6e8120190813102610920888.jpg', '50467', 'image/jpeg', 1, 1565663170, 1, 2),
+(1091, '11_1011_0_product.jpg', '/uploads/routine/product/11_1011_0_product.jpg', '/uploads/routine/product/11_1011_0_product.jpg', '48552', 'image/jpeg', 1, 1565663368, 1, 2),
+(1092, 'c429420190813110028404621.jpg', '/uploads/wap/spread/poster/c429420190813110028404621.jpg', '/uploads/wap/spread/poster/c429420190813110028404621.jpg', '82690', 'image/jpeg', 1, 1565665228, 1, 2),
+(1093, 'dba1c20190813110028315787.jpg', '/uploads/wap/spread/poster/dba1c20190813110028315787.jpg', '/uploads/wap/spread/poster/dba1c20190813110028315787.jpg', '55067', 'image/jpeg', 1, 1565665228, 1, 2),
+(1094, '3bf7520190813110028180293.jpg', '/uploads/wap/spread/poster/3bf7520190813110028180293.jpg', '/uploads/wap/spread/poster/3bf7520190813110028180293.jpg', '75721', 'image/jpeg', 1, 1565665228, 1, 2),
+(1095, '1017_0_user_wap.jpg', '/uploads/qrcode/1017_0_user_wap.jpg', '/uploads/qrcode/1017_0_user_wap.jpg', '525', 'image/jpeg', 1, 1565666771, 1, 2),
+(1096, 'ac8a920190813112611551322.jpg', '/uploads/wap/spread/poster/ac8a920190813112611551322.jpg', '/uploads/wap/spread/poster/ac8a920190813112611551322.jpg', '84524', 'image/jpeg', 1, 1565666771, 1, 2),
+(1097, '201252019081311261165495.jpg', '/uploads/wap/spread/poster/201252019081311261165495.jpg', '/uploads/wap/spread/poster/201252019081311261165495.jpg', '56892', 'image/jpeg', 1, 1565666771, 1, 2),
+(1098, 'f4e3c20190813112612587382.jpg', '/uploads/wap/spread/poster/f4e3c20190813112612587382.jpg', '/uploads/wap/spread/poster/f4e3c20190813112612587382.jpg', '77544', 'image/jpeg', 1, 1565666772, 1, 2),
+(1099, '3_613_0_product.jpg', '/uploads/routine/product/3_613_0_product.jpg', '/uploads/routine/product/3_613_0_product.jpg', '146', 'text/html', 1, 1565667337, 1, 2),
+(1100, '11_1021_0_product.jpg', '/uploads/routine/product/11_1021_0_product.jpg', '/uploads/routine/product/11_1021_0_product.jpg', '49942', 'image/jpeg', 1, 1565668070, 1, 2),
+(1101, '3_product_detail_1023_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_1023_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_1023_is_promoter_0.wap.jpg', '603', 'image/jpeg', 1, 1565668170, 1, 2),
+(1102, '2_613_0_product.jpg', '/uploads/routine/product/2_613_0_product.jpg', '/uploads/routine/product/2_613_0_product.jpg', '146', 'text/html', 1, 1565668179, 1, 2),
+(1103, '2cfd420190813115055398658.jpg', '/uploads/wap/spread/poster/2cfd420190813115055398658.jpg', '/uploads/wap/spread/poster/2cfd420190813115055398658.jpg', '82205', 'image/jpeg', 1, 1565668255, 1, 2),
+(1104, 'ce78d20190813115055553728.jpg', '/uploads/wap/spread/poster/ce78d20190813115055553728.jpg', '/uploads/wap/spread/poster/ce78d20190813115055553728.jpg', '54568', 'image/jpeg', 1, 1565668255, 1, 2),
+(1105, 'f466620190813115055114005.jpg', '/uploads/wap/spread/poster/f466620190813115055114005.jpg', '/uploads/wap/spread/poster/f466620190813115055114005.jpg', '75222', 'image/jpeg', 1, 1565668255, 1, 2),
+(1106, '3_774_0_bargain_share_wap.jpg', '/uploads/qrcode/3_774_0_bargain_share_wap.jpg', '/uploads/qrcode/3_774_0_bargain_share_wap.jpg', '795', 'image/jpeg', 1, 1565668282, 1, 2),
+(1107, '4f16420190813115122265187.jpg', '/uploads/wap/activity/bargain/poster/4f16420190813115122265187.jpg', '/uploads/wap/activity/bargain/poster/4f16420190813115122265187.jpg', '50681', 'image/jpeg', 1, 1565668282, 1, 2),
+(1108, '11_955_0_product.jpg', '/uploads/routine/product/11_955_0_product.jpg', '/uploads/routine/product/11_955_0_product.jpg', '49052', 'image/jpeg', 1, 1565668588, 1, 2),
+(1109, '96e7052d173868cf4c04bc2be75de973.jpg', '/uploads/wechat/image/20190813/96e7052d173868cf4c04bc2be75de973.jpg', '/./uploads/wechat/image/20190813/s_96e7052d173868cf4c04bc2be75de973.jpg', '97071', 'image/jpeg', 0, 1565668892, 1, 1),
+(1110, '2_1026_0_product.jpg', '/uploads/routine/product/2_1026_0_product.jpg', '/uploads/routine/product/2_1026_0_product.jpg', '48222', 'image/jpeg', 1, 1565669001, 1, 2),
+(1111, '8_1026_0_product.jpg', '/uploads/routine/product/8_1026_0_product.jpg', '/uploads/routine/product/8_1026_0_product.jpg', '49347', 'image/jpeg', 1, 1565669006, 1, 2),
+(1112, '9_955_0_product.jpg', '/uploads/routine/product/9_955_0_product.jpg', '/uploads/routine/product/9_955_0_product.jpg', '48471', 'image/jpeg', 1, 1565675291, 1, 2),
+(1113, '8_1034_0_product.jpg', '/uploads/routine/product/8_1034_0_product.jpg', '/uploads/routine/product/8_1034_0_product.jpg', '49824', 'image/jpeg', 1, 1565676749, 1, 2),
+(1114, '7_1034_0_product.jpg', '/uploads/routine/product/7_1034_0_product.jpg', '/uploads/routine/product/7_1034_0_product.jpg', '49649', 'image/jpeg', 1, 1565676854, 1, 2),
+(1115, '1035_0_user_routine.jpg', '/uploads/routine/spread/code/1035_0_user_routine.jpg', '/uploads/routine/spread/code/1035_0_user_routine.jpg', '49447', 'image/jpeg', 1, 1565677010, 1, 2),
+(1116, '56dc020190813141651638037.jpg', '/uploads/routine/spread/poster/56dc020190813141651638037.jpg', '/uploads/routine/spread/poster/56dc020190813141651638037.jpg', '81162', 'image/jpeg', 1, 1565677011, 1, 2),
+(1117, 'ddf9020190813141651330766.jpg', '/uploads/routine/spread/poster/ddf9020190813141651330766.jpg', '/uploads/routine/spread/poster/ddf9020190813141651330766.jpg', '53536', 'image/jpeg', 1, 1565677011, 1, 2),
+(1118, '1f97020190813141651424333.jpg', '/uploads/routine/spread/poster/1f97020190813141651424333.jpg', '/uploads/routine/spread/poster/1f97020190813141651424333.jpg', '74186', 'image/jpeg', 1, 1565677011, 1, 2),
+(1119, '3_product_detail_1037_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_1037_is_promoter_0.wap.jpg', '/uploads/qrcode/3_product_detail_1037_is_promoter_0.wap.jpg', '611', 'image/jpeg', 1, 1565677289, 1, 2),
+(1120, 'd1aeac651bfa32b2a57ebac1b0263cb6.jpg', '/uploads/wechat/image/20190813/d1aeac651bfa32b2a57ebac1b0263cb6.jpg', '/./uploads/wechat/image/20190813/s_d1aeac651bfa32b2a57ebac1b0263cb6.jpg', '97071', 'image/jpeg', 0, 1565679313, 1, 1),
+(1121, '590_1_user_wap.jpg', '/uploads/qrcode/590_1_user_wap.jpg', '/uploads/qrcode/590_1_user_wap.jpg', '515', 'image/jpeg', 1, 1565680771, 1, 2),
+(1122, '3e88320190813151932934652.jpg', '/uploads/wap/spread/poster/3e88320190813151932934652.jpg', '/uploads/wap/spread/poster/3e88320190813151932934652.jpg', '82959', 'image/jpeg', 1, 1565680772, 1, 2),
+(1123, '9b89b20190813151932678271.jpg', '/uploads/wap/spread/poster/9b89b20190813151932678271.jpg', '/uploads/wap/spread/poster/9b89b20190813151932678271.jpg', '55333', 'image/jpeg', 1, 1565680772, 1, 2),
+(1124, 'd79c820190813151932649423.jpg', '/uploads/wap/spread/poster/d79c820190813151932649423.jpg', '/uploads/wap/spread/poster/d79c820190813151932649423.jpg', '75989', 'image/jpeg', 1, 1565680772, 1, 2),
+(1125, 'ca91820190813151954439982.jpg', '/uploads/wap/spread/poster/ca91820190813151954439982.jpg', '/uploads/wap/spread/poster/ca91820190813151954439982.jpg', '82959', 'image/jpeg', 1, 1565680794, 1, 2),
+(1126, '3acb220190813151954933426.jpg', '/uploads/wap/spread/poster/3acb220190813151954933426.jpg', '/uploads/wap/spread/poster/3acb220190813151954933426.jpg', '55333', 'image/jpeg', 1, 1565680794, 1, 2),
+(1127, 'd714d20190813151954946218.jpg', '/uploads/wap/spread/poster/d714d20190813151954946218.jpg', '/uploads/wap/spread/poster/d714d20190813151954946218.jpg', '75989', 'image/jpeg', 1, 1565680794, 1, 2),
+(1128, '2996920190813152014137187.jpg', '/uploads/wap/spread/poster/2996920190813152014137187.jpg', '/uploads/wap/spread/poster/2996920190813152014137187.jpg', '82959', 'image/jpeg', 1, 1565680814, 1, 2),
+(1129, '0e99920190813152014180875.jpg', '/uploads/wap/spread/poster/0e99920190813152014180875.jpg', '/uploads/wap/spread/poster/0e99920190813152014180875.jpg', '55333', 'image/jpeg', 1, 1565680814, 1, 2),
+(1130, 'c846120190813152015352135.jpg', '/uploads/wap/spread/poster/c846120190813152015352135.jpg', '/uploads/wap/spread/poster/c846120190813152015352135.jpg', '75989', 'image/jpeg', 1, 1565680815, 1, 2),
+(1131, '1359a20190813152120803670.jpg', '/uploads/wap/spread/poster/1359a20190813152120803670.jpg', '/uploads/wap/spread/poster/1359a20190813152120803670.jpg', '82959', 'image/jpeg', 1, 1565680880, 1, 2),
+(1132, '17a3120190813152120985638.jpg', '/uploads/wap/spread/poster/17a3120190813152120985638.jpg', '/uploads/wap/spread/poster/17a3120190813152120985638.jpg', '55333', 'image/jpeg', 1, 1565680880, 1, 2),
+(1133, '3f00f20190813152120871488.jpg', '/uploads/wap/spread/poster/3f00f20190813152120871488.jpg', '/uploads/wap/spread/poster/3f00f20190813152120871488.jpg', '75989', 'image/jpeg', 1, 1565680880, 1, 2),
+(1134, '00ec52019081315230832415.jpg', '/uploads/wap/spread/poster/00ec52019081315230832415.jpg', '/uploads/wap/spread/poster/00ec52019081315230832415.jpg', '82959', 'image/jpeg', 1, 1565680988, 1, 2),
+(1135, '1cc8a20190813152308142141.jpg', '/uploads/wap/spread/poster/1cc8a20190813152308142141.jpg', '/uploads/wap/spread/poster/1cc8a20190813152308142141.jpg', '55333', 'image/jpeg', 1, 1565680988, 1, 2),
+(1136, 'b132e20190813152308972825.jpg', '/uploads/wap/spread/poster/b132e20190813152308972825.jpg', '/uploads/wap/spread/poster/b132e20190813152308972825.jpg', '75989', 'image/jpeg', 1, 1565680988, 1, 2),
+(1137, '4f1f220190813152313628797.jpg', '/uploads/wap/spread/poster/4f1f220190813152313628797.jpg', '/uploads/wap/spread/poster/4f1f220190813152313628797.jpg', '82959', 'image/jpeg', 1, 1565680993, 1, 2),
+(1138, '1f87a20190813152313158896.jpg', '/uploads/wap/spread/poster/1f87a20190813152313158896.jpg', '/uploads/wap/spread/poster/1f87a20190813152313158896.jpg', '55333', 'image/jpeg', 1, 1565680993, 1, 2),
+(1139, 'fc39420190813152313895150.jpg', '/uploads/wap/spread/poster/fc39420190813152313895150.jpg', '/uploads/wap/spread/poster/fc39420190813152313895150.jpg', '75989', 'image/jpeg', 1, 1565680993, 1, 2),
+(1140, '3_955_0_product.jpg', '/uploads/routine/product/3_955_0_product.jpg', '/uploads/routine/product/3_955_0_product.jpg', '49092', 'image/jpeg', 1, 1565681005, 1, 2),
+(1141, '7_955_0_product.jpg', '/uploads/routine/product/7_955_0_product.jpg', '/uploads/routine/product/7_955_0_product.jpg', '50025', 'image/jpeg', 1, 1565681012, 1, 2),
+(1142, '8_955_0_product.jpg', '/uploads/routine/product/8_955_0_product.jpg', '/uploads/routine/product/8_955_0_product.jpg', '48602', 'image/jpeg', 1, 1565681490, 1, 2),
+(1143, '2_955_0_product.jpg', '/uploads/routine/product/2_955_0_product.jpg', '/uploads/routine/product/2_955_0_product.jpg', '49247', 'image/jpeg', 1, 1565681569, 1, 2),
+(1144, '1047_0_user_routine.jpg', '/uploads/routine/spread/code/1047_0_user_routine.jpg', '/uploads/routine/spread/code/1047_0_user_routine.jpg', '49666', 'image/jpeg', 1, 1565684834, 1, 2),
+(1145, '23fc42019081316271454086.jpg', '/uploads/routine/spread/poster/23fc42019081316271454086.jpg', '/uploads/routine/spread/poster/23fc42019081316271454086.jpg', '81907', 'image/jpeg', 1, 1565684834, 1, 2),
+(1146, '5d40920190813162714983793.jpg', '/uploads/routine/spread/poster/5d40920190813162714983793.jpg', '/uploads/routine/spread/poster/5d40920190813162714983793.jpg', '54281', 'image/jpeg', 1, 1565684834, 1, 2),
+(1147, '44feb20190813162715424606.jpg', '/uploads/routine/spread/poster/44feb20190813162715424606.jpg', '/uploads/routine/spread/poster/44feb20190813162715424606.jpg', '74928', 'image/jpeg', 1, 1565684835, 1, 2),
+(1148, '9_1047_0_product.jpg', '/uploads/routine/product/9_1047_0_product.jpg', '/uploads/routine/product/9_1047_0_product.jpg', '49427', 'image/jpeg', 1, 1565684878, 1, 2),
+(1149, '3_882_0_bargain_share_wap.jpg', '/uploads/qrcode/3_882_0_bargain_share_wap.jpg', '/uploads/qrcode/3_882_0_bargain_share_wap.jpg', '812', 'image/jpeg', 1, 1565685004, 1, 2),
+(1150, 'c88d820190813163005738195.jpg', '/uploads/wap/activity/bargain/poster/c88d820190813163005738195.jpg', '/uploads/wap/activity/bargain/poster/c88d820190813163005738195.jpg', '50809', 'image/jpeg', 1, 1565685005, 1, 2),
+(1151, '47e3320190813164734983108.jpg', '/uploads/wap/spread/poster/47e3320190813164734983108.jpg', '/uploads/wap/spread/poster/47e3320190813164734983108.jpg', '82343', 'image/jpeg', 1, 1565686054, 1, 2),
+(1152, '8e68c2019081316473427010.jpg', '/uploads/wap/spread/poster/8e68c2019081316473427010.jpg', '/uploads/wap/spread/poster/8e68c2019081316473427010.jpg', '54694', 'image/jpeg', 1, 1565686054, 1, 2),
+(1153, '05ee420190813164734538417.jpg', '/uploads/wap/spread/poster/05ee420190813164734538417.jpg', '/uploads/wap/spread/poster/05ee420190813164734538417.jpg', '75355', 'image/jpeg', 1, 1565686054, 1, 2),
+(1154, 'd1ff120190813165431257530.jpg', '/uploads/wap/activity/bargain/poster/d1ff120190813165431257530.jpg', '/uploads/wap/activity/bargain/poster/d1ff120190813165431257530.jpg', '50585', 'image/jpeg', 1, 1565686471, 1, 2),
+(1155, '69cd220190813165440701612.jpg', '/uploads/wap/activity/bargain/poster/69cd220190813165440701612.jpg', '/uploads/wap/activity/bargain/poster/69cd220190813165440701612.jpg', '50585', 'image/jpeg', 1, 1565686480, 1, 2),
+(1156, '8c66b20190813165457295263.jpg', '/uploads/wap/activity/bargain/poster/8c66b20190813165457295263.jpg', '/uploads/wap/activity/bargain/poster/8c66b20190813165457295263.jpg', '50585', 'image/jpeg', 1, 1565686497, 1, 2),
+(1157, '7985620190813165508515056.jpg', '/uploads/wap/activity/bargain/poster/7985620190813165508515056.jpg', '/uploads/wap/activity/bargain/poster/7985620190813165508515056.jpg', '50585', 'image/jpeg', 1, 1565686508, 1, 2),
+(1158, '8e44320190813165520983930.jpg', '/uploads/wap/activity/bargain/poster/8e44320190813165520983930.jpg', '/uploads/wap/activity/bargain/poster/8e44320190813165520983930.jpg', '50585', 'image/jpeg', 1, 1565686520, 1, 2),
+(1159, '3_1019_0_bargain_share_wap.jpg', '/uploads/qrcode/3_1019_0_bargain_share_wap.jpg', '/uploads/qrcode/3_1019_0_bargain_share_wap.jpg', '918', 'image/jpeg', 1, 1565687129, 1, 2),
+(1160, '856fc20190813170529971403.jpg', '/uploads/wap/activity/bargain/poster/856fc20190813170529971403.jpg', '/uploads/wap/activity/bargain/poster/856fc20190813170529971403.jpg', '50517', 'image/jpeg', 1, 1565687129, 1, 2),
+(1161, '1050_0_user_wap.jpg', '/uploads/qrcode/1050_0_user_wap.jpg', '/uploads/qrcode/1050_0_user_wap.jpg', '507', 'image/jpeg', 1, 1565687313, 1, 2),
+(1162, 'b99d120190813170833643072.jpg', '/uploads/wap/spread/poster/b99d120190813170833643072.jpg', '/uploads/wap/spread/poster/b99d120190813170833643072.jpg', '82177', 'image/jpeg', 1, 1565687313, 1, 2),
+(1163, 'da3fd20190813170833723331.jpg', '/uploads/wap/spread/poster/da3fd20190813170833723331.jpg', '/uploads/wap/spread/poster/da3fd20190813170833723331.jpg', '54546', 'image/jpeg', 1, 1565687313, 1, 2),
+(1164, '236f120190813170833559161.jpg', '/uploads/wap/spread/poster/236f120190813170833559161.jpg', '/uploads/wap/spread/poster/236f120190813170833559161.jpg', '75209', 'image/jpeg', 1, 1565687313, 1, 2),
+(1165, '7900720190813171322753912.jpg', '/uploads/wap/spread/poster/7900720190813171322753912.jpg', '/uploads/wap/spread/poster/7900720190813171322753912.jpg', '82177', 'image/jpeg', 1, 1565687602, 1, 2),
+(1166, 'b32e820190813171322204686.jpg', '/uploads/wap/spread/poster/b32e820190813171322204686.jpg', '/uploads/wap/spread/poster/b32e820190813171322204686.jpg', '54546', 'image/jpeg', 1, 1565687602, 1, 2),
+(1167, '4734420190813171322101422.jpg', '/uploads/wap/spread/poster/4734420190813171322101422.jpg', '/uploads/wap/spread/poster/4734420190813171322101422.jpg', '75209', 'image/jpeg', 1, 1565687602, 1, 2),
+(1168, '4e3396f4248e9e5ef2eab5505216ade0.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/4e3396f4248e9e5ef2eab5505216ade0.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/4e3396f4248e9e5ef2eab5505216ade0.jpg', '19245', 'image/jpeg', 9, 1565687843, 1, 1),
+(1169, '4e3396f4248e9e5ef2eab5505216ade0.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/4e3396f4248e9e5ef2eab5505216ade0.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/4e3396f4248e9e5ef2eab5505216ade0.jpg', '19245', 'image/jpeg', 9, 1565687843, 1, 1),
+(1170, '5653627e73313cf61c9620725c45a376.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/5653627e73313cf61c9620725c45a376.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/5653627e73313cf61c9620725c45a376.jpg', '6641', 'image/jpeg', 9, 1565687843, 1, 1),
+(1171, '1d9d4158d2d7c7f0466e78207246e845.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/1d9d4158d2d7c7f0466e78207246e845.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/1d9d4158d2d7c7f0466e78207246e845.jpg', '36653', 'image/jpeg', 9, 1565687843, 1, 1),
+(1172, '3f9bfd12b76f290d3ed82ea44ebb399a.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/3f9bfd12b76f290d3ed82ea44ebb399a.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/3f9bfd12b76f290d3ed82ea44ebb399a.jpg', '14501', 'image/jpeg', 9, 1565687844, 1, 1),
+(1173, 'e8c9d50e6b7cef371fe742ab08abd6a4.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/e8c9d50e6b7cef371fe742ab08abd6a4.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/e8c9d50e6b7cef371fe742ab08abd6a4.jpg', '29431', 'image/jpeg', 9, 1565687844, 1, 1),
+(1174, 'e882d4dffdca67b65a7a1e66fb209c4c.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/e882d4dffdca67b65a7a1e66fb209c4c.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/e882d4dffdca67b65a7a1e66fb209c4c.jpg', '147861', 'image/jpeg', 9, 1565687844, 1, 1),
+(1175, 'feb565a57f5d42c370c54df7bdacb050.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/feb565a57f5d42c370c54df7bdacb050.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/feb565a57f5d42c370c54df7bdacb050.jpg', '68050', 'image/jpeg', 9, 1565687844, 1, 1),
+(1176, '12709ee798ac2dd5c21d7ab030aa4e13.png', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/12709ee798ac2dd5c21d7ab030aa4e13.png', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/12709ee798ac2dd5c21d7ab030aa4e13.png', '428042', 'image/png', 9, 1565687844, 1, 1),
+(1177, '5cc24febd1722f8c7ec7d5cf74262743.png', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/5cc24febd1722f8c7ec7d5cf74262743.png', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/5cc24febd1722f8c7ec7d5cf74262743.png', '808887', 'image/png', 9, 1565687844, 1, 1),
+(1178, '28ccd5e15404129a793045f57049f149.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/28ccd5e15404129a793045f57049f149.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/28ccd5e15404129a793045f57049f149.jpg', '226404', 'image/jpeg', 9, 1565687845, 1, 1),
+(1179, '42cc797e7005e47baf26cc33655b4667.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/42cc797e7005e47baf26cc33655b4667.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/42cc797e7005e47baf26cc33655b4667.jpg', '51540', 'image/jpeg', 9, 1565687845, 1, 1),
+(1180, '0a8d0d2e2cb85c94c0d5380058603c56.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/0a8d0d2e2cb85c94c0d5380058603c56.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/0a8d0d2e2cb85c94c0d5380058603c56.jpg', '112097', 'image/jpeg', 9, 1565687845, 1, 1),
+(1181, '26b2896f313fb594884fb992e33c5fa8.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/26b2896f313fb594884fb992e33c5fa8.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/26b2896f313fb594884fb992e33c5fa8.jpg', '75331', 'image/jpeg', 9, 1565687845, 1, 1),
+(1182, '7d1991d9b7bf33e84782c6cd942224f6.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/7d1991d9b7bf33e84782c6cd942224f6.jpg', 'http://kaifa.crmeb.net/uploads/attach/2019/08/13/7d1991d9b7bf33e84782c6cd942224f6.jpg', '94600', 'image/jpeg', 9, 1565687845, 1, 1),
+(1183, 'fc49020190813173926971674.jpg', '/uploads/wap/activity/bargain/poster/fc49020190813173926971674.jpg', '/uploads/wap/activity/bargain/poster/fc49020190813173926971674.jpg', '50585', 'image/jpeg', 1, 1565689166, 1, 2),
+(1184, '9b8b520190813173933680624.jpg', '/uploads/wap/activity/bargain/poster/9b8b520190813173933680624.jpg', '/uploads/wap/activity/bargain/poster/9b8b520190813173933680624.jpg', '50585', 'image/jpeg', 1, 1565689173, 1, 2),
+(1185, 'a96d320190813173945331757.jpg', '/uploads/wap/activity/bargain/poster/a96d320190813173945331757.jpg', '/uploads/wap/activity/bargain/poster/a96d320190813173945331757.jpg', '50585', 'image/jpeg', 1, 1565689185, 1, 2),
+(1186, '8_1054_0_product.jpg', '/uploads/routine/product/8_1054_0_product.jpg', '/uploads/routine/product/8_1054_0_product.jpg', '50250', 'image/jpeg', 1, 1565690275, 1, 2),
+(1187, '7_706_0_product.jpg', '/uploads/routine/product/7_706_0_product.jpg', '/uploads/routine/product/7_706_0_product.jpg', '49417', 'image/jpeg', 1, 1565693728, 1, 2),
+(1188, '9_1067_0_product.jpg', '/uploads/routine/product/9_1067_0_product.jpg', '/uploads/routine/product/9_1067_0_product.jpg', '49450', 'image/jpeg', 1, 1565704981, 1, 2),
+(1189, '2_1067_0_product.jpg', '/uploads/routine/product/2_1067_0_product.jpg', '/uploads/routine/product/2_1067_0_product.jpg', '47542', 'image/jpeg', 1, 1565705091, 1, 2),
+(1190, '11_1055_0_product.jpg', '/uploads/routine/product/11_1055_0_product.jpg', '/uploads/routine/product/11_1055_0_product.jpg', '47620', 'image/jpeg', 1, 1565705123, 1, 2),
+(1191, '11_1068_0_product.jpg', '/uploads/routine/product/11_1068_0_product.jpg', '/uploads/routine/product/11_1068_0_product.jpg', '50204', 'image/jpeg', 1, 1565705863, 1, 2),
+(1192, '2_1080_0_product.jpg', '/uploads/routine/product/2_1080_0_product.jpg', '/uploads/routine/product/2_1080_0_product.jpg', '48454', 'image/jpeg', 1, 1565735982, 1, 2),
+(1193, '9_1081_0_product.jpg', '/uploads/routine/product/9_1081_0_product.jpg', '/uploads/routine/product/9_1081_0_product.jpg', '49207', 'image/jpeg', 1, 1565737409, 1, 2),
+(1194, '1083_0_user_wap.jpg', '/uploads/qrcode/1083_0_user_wap.jpg', '/uploads/qrcode/1083_0_user_wap.jpg', '516', 'image/jpeg', 1, 1565740922, 1, 2),
+(1195, '57cd320190814080202137284.jpg', '/uploads/wap/spread/poster/57cd320190814080202137284.jpg', '/uploads/wap/spread/poster/57cd320190814080202137284.jpg', '82649', 'image/jpeg', 1, 1565740922, 1, 2),
+(1196, 'db98d20190814080202710804.jpg', '/uploads/wap/spread/poster/db98d20190814080202710804.jpg', '/uploads/wap/spread/poster/db98d20190814080202710804.jpg', '55020', 'image/jpeg', 1, 1565740922, 1, 2),
+(1197, 'cedeb20190814080202903131.jpg', '/uploads/wap/spread/poster/cedeb20190814080202903131.jpg', '/uploads/wap/spread/poster/cedeb20190814080202903131.jpg', '75681', 'image/jpeg', 1, 1565740922, 1, 2),
+(1198, 'f5bf02019081408194197811.jpg', '/uploads/wap/spread/poster/f5bf02019081408194197811.jpg', '/uploads/wap/spread/poster/f5bf02019081408194197811.jpg', '82205', 'image/jpeg', 1, 1565741981, 1, 2),
+(1199, 'b06b520190814081941398479.jpg', '/uploads/wap/spread/poster/b06b520190814081941398479.jpg', '/uploads/wap/spread/poster/b06b520190814081941398479.jpg', '54568', 'image/jpeg', 1, 1565741981, 1, 2),
+(1200, '8c19f20190814081941113779.jpg', '/uploads/wap/spread/poster/8c19f20190814081941113779.jpg', '/uploads/wap/spread/poster/8c19f20190814081941113779.jpg', '75222', 'image/jpeg', 1, 1565741981, 1, 2),
+(1201, '7b83b4ca2001251426bc68934cd15a68.jpeg', '/uploads/store/comment/20190814/7b83b4ca2001251426bc68934cd15a68.jpeg', '/./uploads/store/comment/20190814/s_7b83b4ca2001251426bc68934cd15a68.jpeg', '102985', 'image/jpeg', 1, 1565742047, 1, 2),
+(1202, '00ee55387e99fe382ad73a8a0d6cf395.jpeg', '/uploads/store/comment/20190814/00ee55387e99fe382ad73a8a0d6cf395.jpeg', '/./uploads/store/comment/20190814/s_00ee55387e99fe382ad73a8a0d6cf395.jpeg', '102985', 'image/jpeg', 1, 1565742153, 1, 2),
+(1203, 'd7b7bafb3a2994d0910ba747dad36f9b.jpeg', '/uploads/store/comment/20190814/d7b7bafb3a2994d0910ba747dad36f9b.jpeg', '/./uploads/store/comment/20190814/s_d7b7bafb3a2994d0910ba747dad36f9b.jpeg', '102985', 'image/jpeg', 1, 1565743086, 1, 2);
-- --------------------------------------------------------
@@ -1369,12 +2747,11 @@ CREATE TABLE IF NOT EXISTS `eb_system_attachment` (
CREATE TABLE IF NOT EXISTS `eb_system_attachment_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pid` int(11) DEFAULT '0' COMMENT '父级ID',
- `name` varchar(50) NOT NULL COMMENT '分类名称',
- `enname` varchar(50) NOT NULL COMMENT '分类目录',
+ `name` varchar(50) NOT NULL DEFAULT '' COMMENT '分类名称',
+ `enname` varchar(50) DEFAULT NULL COMMENT '分类目录',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `id` (`id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='附件分类表' AUTO_INCREMENT=2 ;
-
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='附件分类表' AUTO_INCREMENT=33 ;
-- --------------------------------------------------------
@@ -1385,7 +2762,7 @@ CREATE TABLE IF NOT EXISTS `eb_system_attachment_category` (
CREATE TABLE IF NOT EXISTS `eb_system_config` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置id',
`menu_name` varchar(255) NOT NULL COMMENT '字段名称',
- `type` varchar(255) NOT NULL COMMENT '类型(文本框,单选按钮...)',
+ `type` varchar(255) NOT NULL DEFAULT '' COMMENT '类型(文本框,单选按钮...)',
`input_type` varchar(20) DEFAULT 'input' COMMENT '表单类型',
`config_tab_id` int(10) unsigned NOT NULL COMMENT '配置分类id',
`parameter` varchar(255) DEFAULT NULL COMMENT '规则 单选框和多选框',
@@ -1394,17 +2771,18 @@ CREATE TABLE IF NOT EXISTS `eb_system_config` (
`width` int(10) unsigned DEFAULT NULL COMMENT '多行文本框的宽度',
`high` int(10) unsigned DEFAULT NULL COMMENT '多行文框的高度',
`value` varchar(5000) DEFAULT NULL COMMENT '默认值',
- `info` varchar(255) NOT NULL COMMENT '配置名称',
+ `info` varchar(255) NOT NULL DEFAULT '' COMMENT '配置名称',
`desc` varchar(255) DEFAULT NULL COMMENT '配置简介',
- `sort` int(10) unsigned NOT NULL COMMENT '排序',
- `status` tinyint(1) unsigned NOT NULL COMMENT '是否隐藏',
+ `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序',
+ `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隐藏',
PRIMARY KEY (`id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='配置表' AUTO_INCREMENT=142 ;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='配置表' AUTO_INCREMENT=141 ;
--
-- 转存表中的数据 `eb_system_config`
--
+
INSERT INTO `eb_system_config` (`id`, `menu_name`, `type`, `input_type`, `config_tab_id`, `parameter`, `upload_type`, `required`, `width`, `high`, `value`, `info`, `desc`, `sort`, `status`) VALUES
(1, 'site_name', 'text', 'input', 1, '', 0, 'required:true', 100, 0, '""', '网站名称', '网站名称', 0, 1),
(2, 'site_url', 'text', 'input', 1, '', 0, 'required:true,url:true', 100, 0, '""', '网站地址', '网站地址', 0, 1),
@@ -1413,7 +2791,7 @@ INSERT INTO `eb_system_config` (`id`, `menu_name`, `type`, `input_type`, `config
(5, 'seo_title', 'text', 'input', 1, '', 0, 'required:true', 100, 0, '""', 'SEO标题', 'SEO标题', 0, 1),
(6, 'site_email', 'text', 'input', 1, '', 0, 'email:true', 100, 0, '""', '联系邮箱', '联系邮箱', 0, 1),
(7, 'site_qq', 'text', 'input', 1, '', 0, 'qq:true', 100, 0, '""', '联系QQ', '联系QQ', 0, 1),
-(8, 'site_close', 'radio', 'input', 1, '0=>开启\n1=>PC端关闭\n2=>WAP端关闭(含微信)\n3=>全部关闭', 0, '', 0, 0, '"0"', '网站关闭', '网站后台、商家中心不受影响。关闭网站也可访问', 0, 1),
+(8, 'site_close', 'radio', 'input', 1, '0=>开启\n1=>PC端关闭\n2=>WAP端关闭(含微信)\n3=>全部关闭', 0, '', 0, 0, '"0"', '网站关闭', '网站后台、商家中心不受影响。关闭网站也可访问', 0, 2),
(9, 'close_system', 'radio', 'input', 1, '0=>开启\n1=>关闭', 0, '', 0, 0, '"0"', '关闭后台', '关闭后台', 0, 2),
(10, 'wechat_name', 'text', 'input', 2, '', 0, 'required:true', 100, 0, '""', '公众号名称', '公众号的名称', 0, 1),
(11, 'wechat_id', 'text', 'input', 2, '', 0, 'required:true', 100, 0, '""', '微信号', '微信号', 0, 1),
@@ -1474,14 +2852,14 @@ INSERT INTO `eb_system_config` (`id`, `menu_name`, `type`, `input_type`, `config
(94, 'pay_routine_client_key', 'upload', 'input', 14, '', 3, '', 0, 0, '""', '小程序支付证书密钥', '小程序支付证书密钥', 0, 1),
(98, 'wechat_avatar', 'upload', 'input', 2, '', 1, '', 0, 0, '""', '公众号logo', '公众号logo', 0, 1),
(99, 'user_extract_bank', 'textarea', 'input', 9, '', 0, '', 100, 5, '"\\u4e2d\\u56fd\\u519c\\u884c\\r\\n\\u4e2d\\u56fd\\u5efa\\u8bbe\\u94f6\\u884c\\r\\n\\u5de5\\u5546\\u94f6\\u884c"', '提现银行卡', '提现银行卡,每个银行换行', 0, 1),
-(100, 'fast_info', 'text', 'input', 16, NULL, NULL, '', 100, NULL, '"\\u4e0a\\u767e\\u79cd\\u5546\\u54c1\\u5206\\u7c7b\\u4efb\\u60a8\\u9009\\u62e9"', '快速选择简介', '小程序首页配置快速选择简介', 0, 1),
-(101, 'bast_info', 'text', 'input', 16, NULL, NULL, '', 100, NULL, '"\\u8001\\u674e\\u8bda\\u610f\\u63a8\\u8350\\u54c1\\u8d28\\u5546\\u54c1"', '精品推荐简介', '小程序首页配置精品推荐简介', 0, 1),
-(102, 'first_info', 'text', 'input', 16, NULL, NULL, '', 100, NULL, '"\\u591a\\u4e2a\\u4f18\\u8d28\\u5546\\u54c1\\u6700\\u65b0\\u4e0a\\u67b6"', '首发新品简介', '小程序首页配置首发新品简介', 0, 1),
-(103, 'sales_info', 'text', 'input', 16, NULL, NULL, '', 100, NULL, '"\\u5e93\\u5b58\\u5546\\u54c1\\u4f18\\u60e0\\u4fc3\\u9500\\u6d3b\\u52a8"', '促销单品简介', '小程序首页配置促销单品简介', 0, 1),
-(104, 'fast_number', 'text', 'input', 16, NULL, NULL, 'required:true,digits:true,min:1', 100, NULL, '"10"', '快速选择分类个数', '小程序首页配置快速选择分类个数', 0, 1),
-(105, 'bast_number', 'text', 'input', 16, NULL, NULL, 'required:true,digits:true,min:1', 100, NULL, '"10"', '精品推荐个数', '小程序首页配置精品推荐个数', 0, 1),
-(106, 'first_number', 'text', 'input', 16, NULL, NULL, 'required:true,digits:true,min:1', 100, NULL, '"10"', '首发新品个数', '小程序首页配置首发新品个数', 0, 1),
-(107, 'routine_index_logo', 'upload', NULL, 5, NULL, 1, NULL, NULL, NULL, '"http:\\/\\/kaifa.crmeb.net\\/uploads\\/attach\\/2019\\/08\\/20190801\\/deb30359d22c0b80f3cece86cb462104.png"', '主页logo图标', '主页logo图标尺寸(127*45)', 0, 1),
+(100, 'fast_info', 'text', 'input', 16, NULL, NULL, '', 100, NULL, '"\\u4e0a\\u767e\\u79cd\\u5546\\u54c1\\u5206\\u7c7b\\u4efb\\u60a8\\u9009\\u62e9"', '快速选择简介', '首页配置快速选择简介', 0, 1),
+(101, 'bast_info', 'text', 'input', 16, NULL, NULL, '', 100, NULL, '"\\u8001\\u674e\\u8bda\\u610f\\u63a8\\u8350\\u54c1\\u8d28\\u5546\\u54c1"', '精品推荐简介', '首页配置精品推荐简介', 0, 1),
+(102, 'first_info', 'text', 'input', 16, NULL, NULL, '', 100, NULL, '"\\u591a\\u4e2a\\u4f18\\u8d28\\u5546\\u54c1\\u6700\\u65b0\\u4e0a\\u67b6"', '首发新品简介', '首页配置首发新品简介', 0, 1),
+(103, 'sales_info', 'text', 'input', 16, NULL, NULL, '', 100, NULL, '"\\u5e93\\u5b58\\u5546\\u54c1\\u4f18\\u60e0\\u4fc3\\u9500\\u6d3b\\u52a8"', '促销单品简介', '首页配置促销单品简介', 0, 1),
+(104, 'fast_number', 'text', 'input', 16, NULL, NULL, 'required:true,digits:true,min:1', 100, NULL, '"10"', '快速选择分类个数', '首页配置快速选择分类个数', 0, 1),
+(105, 'bast_number', 'text', 'input', 16, NULL, NULL, 'required:true,digits:true,min:1', 100, NULL, '"10"', '精品推荐个数', '首页配置精品推荐个数', 0, 1),
+(106, 'first_number', 'text', 'input', 16, NULL, NULL, 'required:true,digits:true,min:1', 100, NULL, '"10"', '首发新品个数', '首页配置首发新品个数', 0, 1),
+(107, 'routine_index_logo', 'upload', NULL, 5, NULL, 1, NULL, NULL, NULL, '\"http:\\/\\/kaifa.crmeb.net\\/uploads\\/attach\\/2019\\/08\\/20190801\\/deb30359d22c0b80f3cece86cb462104.png\"', '主页logo图标', '主页logo图标尺寸(127*45)', 0, 1),
(108, 'upload_type', 'radio', 'input', 17, '1=>本地存储\n2=>七牛云存储\n3=>阿里云OSS\n4=>腾讯COS', NULL, NULL, NULL, NULL, '"1"', '上传类型', '文件上传的类型', 0, 1),
(109, 'uploadUrl', 'text', 'input', 17, NULL, NULL, 'url:true', 100, NULL, '""', '空间域名 Domain', '空间域名 Domain', 0, 1),
(110, 'accessKey', 'text', 'input', 17, NULL, NULL, '', 100, NULL, '""', 'accessKey', 'accessKey', 0, 1),
@@ -1502,7 +2880,22 @@ INSERT INTO `eb_system_config` (`id`, `menu_name`, `type`, `input_type`, `config
(138, 'h5_avatar', 'upload', NULL, 1, NULL, 1, NULL, 0, 0, '"http:\\/\\/kaifa.crmeb.net\\/uploads\\/attach\\/2019\\/08\\/20190807\\/723adbdd4e49a0f9394dfc700ab5dba3.png"', '用户H5默认头像', '用户H5默认头像尺寸(80*80)', 0, 1),
(139, 'offline_pay_status', 'radio', NULL, 5, '1=>开启\n2=>关闭', NULL, NULL, NULL, NULL, '"2"', '线下支付状态', '线下支付状态', 0, 1),
(140, 'news_slides_limit', 'text', 'number', 1, NULL, NULL, 'required:true,digits:true,min:1', 100, NULL, '"5"', '新闻幻灯片限制数量', '新闻幻灯片限制数量', 0, 1),
-(141, 'recharge_switch', 'radio', 'input', 5, '1=>开启\n0=>关闭', NULL, NULL, NULL, NULL, '"1"', '充值开关', '充值开关', 0, 1);
+(141, 'recharge_switch', 'radio', 'input', 5, '1=>开启\n0=>关闭', NULL, NULL, NULL, NULL, '"1"', '充值开关', '充值开关', 0, 1),
+(142, 'tengxun_map_key', 'text', 'input', 10, NULL, NULL, '', 100, NULL, '', '腾讯地图KEY', '腾讯地图KEY', 0, 1),
+(143, 'store_self_mention', 'radio', NULL, 10, '0=>关闭\n1=>开启', NULL, NULL, NULL, NULL, '\"1\"', '是否开启门店自提', '是否开启门店自提', 0, 1),
+(144, 'cache_config', 'text', 'input', 19, NULL, NULL, '', '100', NULL, '\"86400\"', '网站缓存时间', '配置全局缓存时间(秒),默认留空为永久缓存', '0', '1'),
+(145, 'pay_success_printing_switch', 'radio', NULL, 21, '0=>关\n1=>开', NULL, NULL, NULL, NULL, '\"1\"', '支付成功订单打印开关', '支付成功订单打印开关', '0', '1'),
+(146, 'develop_id', 'text', 'input', 21, NULL, NULL, '', '100', NULL, '""', '开发者ID', '易联云开发者ID', '0', '1'),
+(147 ,'printing_api_key', 'text', 'input', 21, NULL, NULL, '', '100', NULL, '""', '应用密钥', '易联应用密钥', '0', '1'),
+(148, 'printing_client_id', 'text', 'input', 21, NULL, NULL, '', '100', NULL, '""', '应用ID', '易联应用ID', '0', '1'),
+(149, 'terminal_number', 'text', 'input', 21, NULL, NULL, '', '100', NULL, '""', '终端号', '易联云打印机终端号', '0', '1'),
+(150, 'lower_order_switch', 'radio', NULL, 20, '0=>关闭\n1=>开启', NULL, NULL, NULL, NULL, '\"0\"', '支付成功提醒开关', '支付成功提醒开关', '0', '1'),
+(151, 'deliver_goods_switch', 'radio', NULL, 20, '0=>关闭\n1=>开启', NULL, NULL, NULL, NULL, '\"0\"', '发货提醒开关', '发货提醒开关', '0', '1'),
+(152, 'confirm_take_over_switch', 'radio', NULL, 20, '0=>关闭\n1=>开启', NULL, NULL, NULL, NULL, '\"0\"', '确认收货提醒开关', '确认收货提醒开关', '0', '1'),
+(153, 'admin_lower_order_switch', 'radio', NULL, 20, '0=>关闭\n1=>开启', NULL, NULL, NULL, NULL, '\"0\"', '用户下单管理员提醒开关', '用户下单管理员提醒开关', '0', '1'),
+(154, 'admin_pay_success_switch', 'radio', NULL, 20, '0=>关闭\n1=>开启', NULL, NULL, NULL, NULL, '\"0\"', '用户支付成功管理员提醒开关', '用户支付成功管理员提醒开关', '0', '1'),
+(155, 'admin_refund_switch', 'radio', NULL, 20, '0=>关闭\n1=>开启', NULL, NULL, NULL, NULL, '\"0\"', '用户退款管理员提醒开关', '用户退款管理员提醒开关', '0', '1'),
+(156, 'admin_confirm_take_over_switch', 'radio', NULL, 20, '0=>关闭\n1=>开启', NULL, NULL, NULL, NULL, '\"0\"', '用户确认收货管理员短信提醒', '用户确认收货管理员短信提醒', '0', '1');
-- --------------------------------------------------------
@@ -1512,8 +2905,8 @@ INSERT INTO `eb_system_config` (`id`, `menu_name`, `type`, `input_type`, `config
CREATE TABLE IF NOT EXISTS `eb_system_config_tab` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置分类id',
- `title` varchar(255) NOT NULL COMMENT '配置分类名称',
- `eng_title` varchar(255) NOT NULL COMMENT '配置分类英文名称',
+ `title` varchar(255) NOT NULL DEFAULT '' COMMENT '配置分类名称',
+ `eng_title` varchar(255) NOT NULL DEFAULT '' COMMENT '配置分类英文名称',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '配置分类状态',
`info` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '配置分类是否显示',
`icon` varchar(30) DEFAULT NULL COMMENT '图标',
@@ -1536,9 +2929,12 @@ INSERT INTO `eb_system_config_tab` (`id`, `title`, `eng_title`, `status`, `info`
(11, '积分配置', 'point', 1, 0, 'powerpoint-o', 3),
(12, '优惠券配置', 'coupon', 1, 0, 'heartbeat', 3),
(14, '小程序支付配置', 'routine_pay', 1, 0, 'jpy', 2),
-(16, '首页配置', 'routine_index_page', 1, 0, 'home', 0),
+(16, '首页配置', 'routine_index_page', 1, 1, 'home', 0),
(17, '文件上传配置', 'upload_set', 1, 0, 'cloud-upload', 0),
-(18, '短信配置', 'system_sms', 1, 0, 'send', 3);
+(18, '短信配置', 'system_sms', 1, 0, 'send', 3),
+(19,'缓存配置','cache_config', 1, 0, 'cube', 0),
+(20,'短信提醒开关', 'short_letter_switch', '1', '0', 'rss', '0'),
+(21,'小票打印配置', 'printing_deploy', '1', '0', 'plug', '0');
-- --------------------------------------------------------
@@ -1548,11 +2944,11 @@ INSERT INTO `eb_system_config_tab` (`id`, `title`, `eng_title`, `status`, `info`
CREATE TABLE IF NOT EXISTS `eb_system_file` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文件对比ID',
- `cthash` char(32) NOT NULL COMMENT '文件内容',
- `filename` varchar(255) NOT NULL COMMENT '文价名称',
- `atime` char(12) NOT NULL COMMENT '上次访问时间',
- `mtime` char(12) NOT NULL COMMENT '上次修改时间',
- `ctime` char(12) NOT NULL COMMENT '上次改变时间',
+ `cthash` char(32) NOT NULL DEFAULT '' COMMENT '文件内容',
+ `filename` varchar(255) NOT NULL DEFAULT '' COMMENT '文价名称',
+ `atime` char(12) NOT NULL DEFAULT '' COMMENT '上次访问时间',
+ `mtime` char(12) NOT NULL DEFAULT '' COMMENT '上次修改时间',
+ `ctime` char(12) NOT NULL DEFAULT '' COMMENT '上次改变时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文件对比表' AUTO_INCREMENT=2187 ;
@@ -1564,9 +2960,9 @@ CREATE TABLE IF NOT EXISTS `eb_system_file` (
CREATE TABLE IF NOT EXISTS `eb_system_group` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '组合数据ID',
- `name` varchar(50) NOT NULL COMMENT '数据组名称',
- `info` varchar(256) NOT NULL COMMENT '数据提示',
- `config_name` varchar(50) NOT NULL COMMENT '数据字段',
+ `name` varchar(50) NOT NULL DEFAULT '' COMMENT '数据组名称',
+ `info` varchar(256) NOT NULL DEFAULT '' COMMENT '数据提示',
+ `config_name` varchar(50) NOT NULL DEFAULT '' COMMENT '数据字段',
`fields` text COMMENT '数据组字段以及类型(json数据)',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `config_name` (`config_name`) USING BTREE
@@ -1577,13 +2973,16 @@ CREATE TABLE IF NOT EXISTS `eb_system_group` (
--
INSERT INTO `eb_system_group` (`id`, `name`, `info`, `config_name`, `fields`) VALUES
-(47, '首页分类图标', '首页分类图标', 'routine_home_menus', '[{"name":"\\u5206\\u7c7b\\u540d\\u79f0","title":"name","type":"input","param":""},{"name":"\\u5206\\u7c7b\\u56fe\\u6807(90*90)","title":"pic","type":"upload","param":""},{"name":"\\u5c0f\\u7a0b\\u5e8f\\u8df3\\u8f6c\\u8def\\u5f84","title":"url","type":"select","param":"\\/pages\\/index\\/index=>\\u5546\\u57ce\\u9996\\u9875\\n\\/pages\\/user_spread_user\\/index=>\\u4e2a\\u4eba\\u63a8\\u5e7f\\n\\/pages\\/user_sgin\\/index=>\\u6211\\u8981\\u7b7e\\u5230\\n\\/pages\\/user_get_coupon\\/index=>\\u4f18\\u60e0\\u5238\\n\\/pages\\/user\\/user=>\\u4e2a\\u4eba\\u4e2d\\u5fc3\\n\\/pages\\/activity\\/goods_seckill\\/index=>\\u79d2\\u6740\\u5217\\u8868\\n\\/pages\\/goods_cate\\/goods_cate=>\\u5206\\u7c7b\\u9875\\u9762\\n\\/pages\\/user_address_list\\/index=>\\u5730\\u5740\\u5217\\u8868\\n\\/pages\\/user_cash\\/index=>\\u63d0\\u73b0\\u9875\\u9762\\n\\/pages\\/promoter-list\\/index=>\\u63a8\\u5e7f\\u7edf\\u8ba1\\n\\/pages\\/user_money\\/index=>\\u8d26\\u6237\\u91d1\\u989d\\n\\/pages\\/user_goods_collection\\/index=>\\u6211\\u7684\\u6536\\u85cf\\n\\/pages\\/promotion-card\\/promotion-card=>\\u63a8\\u5e7f\\u4e8c\\u7ef4\\u7801\\u9875\\u9762\\n\\/pages\\/order_addcart\\/order_addcart=>\\u8d2d\\u7269\\u8f66\\u9875\\u9762\\n\\/pages\\/order_list\\/index=>\\u8ba2\\u5355\\u5217\\u8868\\u9875\\u9762\\n\\/pages\\/news_list\\/index=>\\u6587\\u7ae0\\u5217\\u8868\\u9875"},{"name":"\\u5e95\\u90e8\\u83dc\\u5355","title":"show","type":"radio","param":"1=>\\u662f\\n2=>\\u5426"},{"name":"\\u516c\\u4f17\\u53f7\\u8df3\\u8f6c\\u8def\\u5f84","title":"wap_url","type":"select","param":"\\/=>\\u5546\\u57ce\\u9996\\u9875\\n\\/user\\/user_promotion=>\\u4e2a\\u4eba\\u63a8\\u5e7f\\n\\/user\\/sign=>\\u6211\\u8981\\u7b7e\\u5230\\n\\/user\\/get_coupon=>\\u4f18\\u60e0\\u5238\\n\\/user=>\\u4e2a\\u4eba\\u4e2d\\u5fc3\\n\\/activity\\/goods_seckill=>\\u79d2\\u6740\\u5217\\u8868\\n\\/activity\\/group=>\\u62fc\\u56e2\\u5217\\u8868\\u9875\\n\\/activity\\/bargain=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/category=>\\u5206\\u7c7b\\u9875\\u9762\\n\\/user\\/add_manage=>\\u5730\\u5740\\u5217\\u8868\\n\\/user\\/user_cash=>\\u63d0\\u73b0\\u9875\\u9762\\n\\/user\\/promoter_list=>\\u63a8\\u5e7f\\u7edf\\u8ba1\\n\\/user\\/account=>\\u8d26\\u6237\\u91d1\\u989d\\n\\/collection=>\\u6211\\u7684\\u6536\\u85cf\\n\\/user\\/poster=>\\u63a8\\u5e7f\\u4e8c\\u7ef4\\u7801\\u9875\\u9762\\n\\/cart=>\\u8d2d\\u7269\\u8f66\\u9875\\u9762\\n\\/order\\/list\\/=>\\u8ba2\\u5355\\u5217\\u8868\\u9875\\u9762\\n\\/news_list=>\\u6587\\u7ae0\\u5217\\u8868\\u9875"}]'),
+(37, '拼团、秒杀、砍价顶部banner图', '拼团、秒杀、砍价顶部banner图', 'routine_lovely', '[{"name":"\\u56fe\\u7247","title":"img","type":"upload","param":""},{"name":"\\u63cf\\u8ff0","title":"comment","type":"input","param":""}]'),
+(38, '砍价列表页左上小图标', '砍价列表页左上小图标', 'bargain_banner', '[{"name":"banner","title":"banner","type":"upload","param":""}]'),
+(47, '首页分类图标', '首页分类图标', 'routine_home_menus', '[{"name":"\\u5206\\u7c7b\\u540d\\u79f0","title":"name","type":"input","param":""},{"name":"\\u5206\\u7c7b\\u56fe\\u6807(90*90)","title":"pic","type":"upload","param":""},{"name":"\\u5c0f\\u7a0b\\u5e8f\\u8df3\\u8f6c\\u8def\\u5f84","title":"url","type":"select","param":"\\/pages\\/index\\/index=>\\u5546\\u57ce\\u9996\\u9875\\n\\/pages\\/user_spread_user\\/index=>\\u4e2a\\u4eba\\u63a8\\u5e7f\\n\\/pages\\/user_sgin\\/index=>\\u6211\\u8981\\u7b7e\\u5230\\n\\/pages\\/user_get_coupon\\/index=>\\u4f18\\u60e0\\u5238\\n\\/pages\\/user\\/user=>\\u4e2a\\u4eba\\u4e2d\\u5fc3\\n\\/pages\\/activity\\/goods_seckill\\/index=>\\u79d2\\u6740\\u5217\\u8868\\n\\/pages\\/activity\\/goods_combination\\/index=>\\u62fc\\u56e2\\u5217\\u8868\\u9875\\n\\/pages\\/activity\\/goods_bargain\\/index=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/pages\\/goods_cate\\/goods_cate=>\\u5206\\u7c7b\\u9875\\u9762\\n\\/pages\\/user_address_list\\/index=>\\u5730\\u5740\\u5217\\u8868\\n\\/pages\\/user_cash\\/index=>\\u63d0\\u73b0\\u9875\\u9762\\n\\/pages\\/promoter-list\\/index=>\\u63a8\\u5e7f\\u7edf\\u8ba1\\n\\/pages\\/user_money\\/index=>\\u8d26\\u6237\\u91d1\\u989d\\n\\/pages\\/user_goods_collection\\/index=>\\u6211\\u7684\\u6536\\u85cf\\n\\/pages\\/promotion-card\\/promotion-card=>\\u63a8\\u5e7f\\u4e8c\\u7ef4\\u7801\\u9875\\u9762\\n\\/pages\\/order_addcart\\/order_addcart=>\\u8d2d\\u7269\\u8f66\\u9875\\u9762\\n\\/pages\\/order_list\\/index=>\\u8ba2\\u5355\\u5217\\u8868\\u9875\\u9762\\n\\/pages\\/news_list\\/index=>\\u6587\\u7ae0\\u5217\\u8868\\u9875"},{"name":"\\u5e95\\u90e8\\u83dc\\u5355","title":"show","type":"radio","param":"1=>\\u662f\\n2=>\\u5426"},{"name":"\\u516c\\u4f17\\u53f7\\u8df3\\u8f6c\\u8def\\u5f84","title":"wap_url","type":"select","param":"\\/=>\\u5546\\u57ce\\u9996\\u9875\\n\\/user\\/user_promotion=>\\u4e2a\\u4eba\\u63a8\\u5e7f\\n\\/user\\/sign=>\\u6211\\u8981\\u7b7e\\u5230\\n\\/user\\/get_coupon=>\\u4f18\\u60e0\\u5238\\n\\/user=>\\u4e2a\\u4eba\\u4e2d\\u5fc3\\n\\/activity\\/goods_seckill=>\\u79d2\\u6740\\u5217\\u8868\\n\\/activity\\/group=>\\u62fc\\u56e2\\u5217\\u8868\\u9875\\n\\/activity\\/bargain=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/category=>\\u5206\\u7c7b\\u9875\\u9762\\n\\/user\\/add_manage=>\\u5730\\u5740\\u5217\\u8868\\n\\/user\\/user_cash=>\\u63d0\\u73b0\\u9875\\u9762\\n\\/user\\/promoter_list=>\\u63a8\\u5e7f\\u7edf\\u8ba1\\n\\/user\\/account=>\\u8d26\\u6237\\u91d1\\u989d\\n\\/collection=>\\u6211\\u7684\\u6536\\u85cf\\n\\/user\\/poster=>\\u63a8\\u5e7f\\u4e8c\\u7ef4\\u7801\\u9875\\u9762\\n\\/cart=>\\u8d2d\\u7269\\u8f66\\u9875\\u9762\\n\\/order\\/list\\/=>\\u8ba2\\u5355\\u5217\\u8868\\u9875\\u9762\\n\\/news_list=>\\u6587\\u7ae0\\u5217\\u8868\\u9875"}]'),
(48, '首页banner滚动图', '首页banner滚动图', 'routine_home_banner', '[{"name":"\\u6807\\u9898","title":"name","type":"input","param":""},{"name":"\\u5c0f\\u7a0b\\u5e8f\\u94fe\\u63a5","title":"url","type":"input","param":""},{"name":"\\u56fe\\u7247(750*375)","title":"pic","type":"upload","param":""},{"name":"\\u516c\\u4f17\\u53f7\\u94fe\\u63a5","title":"wap_url","type":"input","param":""}]'),
(49, '秒杀时间段', '秒杀时间段', 'routine_seckill_time', '[{"name":"\\u5f00\\u542f\\u65f6\\u95f4(\\u6574\\u6570\\u5c0f\\u65f6)","title":"time","type":"input","param":""},{"name":"\\u6301\\u7eed\\u65f6\\u95f4(\\u6574\\u6570\\u5c0f\\u65f6)","title":"continued","type":"input","param":""}]'),
(50, '首页滚动新闻', '首页滚动新闻', 'routine_home_roll_news', '[{"name":"\\u6eda\\u52a8\\u6587\\u5b57","title":"info","type":"input","param":""},{"name":"\\u5c0f\\u7a0b\\u5e8f\\u8df3\\u8f6c\\u8def\\u5f84","title":"url","type":"select","param":"\\/pages\\/index\\/index=>\\u5546\\u57ce\\u9996\\u9875\\n\\/pages\\/user_spread_user\\/index=>\\u4e2a\\u4eba\\u63a8\\u5e7f\\n\\/pages\\/user_sgin\\/index=>\\u6211\\u8981\\u7b7e\\u5230\\n\\/pages\\/user_get_coupon\\/index=>\\u4f18\\u60e0\\u5238\\n\\/pages\\/user\\/user=>\\u4e2a\\u4eba\\u4e2d\\u5fc3\\n\\/pages\\/activity\\/goods_seckill\\/index=>\\u79d2\\u6740\\u5217\\u8868\\n\\/pages\\/activity\\/goods_combination\\/index=>\\u62fc\\u56e2\\u5217\\u8868\\u9875\\n\\/pages\\/activity\\/goods_bargain\\/index=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/pages\\/goods_cate\\/goods_cate=>\\u5206\\u7c7b\\u9875\\u9762\\n\\/pages\\/user_address_list\\/index=>\\u5730\\u5740\\u5217\\u8868\\n\\/pages\\/user_cash\\/index=>\\u63d0\\u73b0\\u9875\\u9762\\n\\/pages\\/promoter-list\\/index=>\\u63a8\\u5e7f\\u7edf\\u8ba1\\n\\/pages\\/user_money\\/index=>\\u8d26\\u6237\\u91d1\\u989d\\n\\/pages\\/user_goods_collection\\/index=>\\u6211\\u7684\\u6536\\u85cf\\n\\/pages\\/promotion-card\\/promotion-card=>\\u63a8\\u5e7f\\u4e8c\\u7ef4\\u7801\\u9875\\u9762\\n\\/pages\\/order_addcart\\/order_addcart=>\\u8d2d\\u7269\\u8f66\\u9875\\u9762\\n\\/pages\\/order_list\\/index=>\\u8ba2\\u5355\\u5217\\u8868\\u9875\\u9762\\n\\/pages\\/news_list\\/index=>\\u6587\\u7ae0\\u5217\\u8868\\u9875"},{"name":"\\u5e95\\u90e8\\u83dc\\u5355","title":"show","type":"radio","param":"1=>\\u662f\\n2=>\\u5426"},{"name":"\\u516c\\u4f17\\u53f7\\u8df3\\u8f6c\\u8def\\u5f84","title":"wap_url","type":"select","param":"\\/=>\\u5546\\u57ce\\u9996\\u9875\\n\\/user\\/user_promotion=>\\u4e2a\\u4eba\\u63a8\\u5e7f\\n\\/user\\/sign=>\\u6211\\u8981\\u7b7e\\u5230\\n\\/user\\/get_coupon=>\\u4f18\\u60e0\\u5238\\n\\/user=>\\u4e2a\\u4eba\\u4e2d\\u5fc3\\n\\/activity\\/goods_seckill=>\\u79d2\\u6740\\u5217\\u8868\\n\\/activity\\/group=>\\u62fc\\u56e2\\u5217\\u8868\\u9875\\n\\/activity\\/bargain=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/category=>\\u5206\\u7c7b\\u9875\\u9762\\n\\/user\\/add_manage=>\\u5730\\u5740\\u5217\\u8868\\n\\/user\\/user_cash=>\\u63d0\\u73b0\\u9875\\u9762\\n\\/user\\/promoter_list=>\\u63a8\\u5e7f\\u7edf\\u8ba1\\n\\/user\\/account=>\\u8d26\\u6237\\u91d1\\u989d\\n\\/collection=>\\u6211\\u7684\\u6536\\u85cf\\n\\/user\\/poster=>\\u63a8\\u5e7f\\u4e8c\\u7ef4\\u7801\\u9875\\u9762\\n\\/cart=>\\u8d2d\\u7269\\u8f66\\u9875\\u9762\\n\\/order\\/list\\/=>\\u8ba2\\u5355\\u5217\\u8868\\u9875\\u9762\\n\\/news_list=>\\u6587\\u7ae0\\u5217\\u8868\\u9875"}]'),
+(51, '首页活动区域图片', '首页活动区域图片', 'routine_home_activity', '[{"name":"\\u56fe\\u7247(260*260\\/416*214)","title":"pic","type":"upload","param":""},{"name":"\\u6807\\u9898","title":"title","type":"input","param":""},{"name":"\\u7b80\\u4ecb","title":"info","type":"input","param":""},{"name":"\\u5c0f\\u7a0b\\u5e8f\\u94fe\\u63a5","title":"link","type":"select","param":"\\/pages\\/activity\\/goods_seckill\\/index=>\\u79d2\\u6740\\u5217\\u8868\\n\\/pages\\/activity\\/goods_bargain\\/index=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/pages\\/activity\\/goods_combination\\/index=>\\u62fc\\u56e2\\u5217\\u8868"},{"name":"\\u516c\\u4f17\\u53f7\\u94fe\\u63a5","title":"wap_link","type":"select","param":"\\/activity\\/goods_seckill=>\\u79d2\\u6740\\u5217\\u8868\\n\\/activity\\/bargain=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/activity\\/group=>\\u62fc\\u56e2\\u5217\\u8868"}]'),
(52, '首页精品推荐benner图', '首页精品推荐benner图', 'routine_home_bast_banner', '[{"name":"\\u56fe\\u7247","title":"img","type":"upload","param":""},{"name":"\\u63cf\\u8ff0","title":"comment","type":"input","param":""},{"name":"\\u5c0f\\u7a0b\\u5e8f\\u8df3\\u8f6c\\u94fe\\u63a5","title":"link","type":"input","param":""},{"name":"\\u516c\\u4f17\\u53f7\\u8df3\\u8f6c\\u94fe\\u63a5","title":"wap_link","type":"input","param":""}]'),
(53, '订单详情状态图', '订单详情状态图', 'order_details_images', '[{"name":"\\u8ba2\\u5355\\u72b6\\u6001","title":"order_status","type":"select","param":"0=>\\u672a\\u652f\\u4ed8\\n1=>\\u5f85\\u53d1\\u8d27\\n2=>\\u5f85\\u6536\\u8d27\\n3=>\\u5f85\\u8bc4\\u4ef7\\n4=>\\u5df2\\u5b8c\\u6210\\n9=>\\u7ebf\\u4e0b\\u4ed8\\u6b3e"},{"name":"\\u56fe\\u6807","title":"pic","type":"upload","param":""}]'),
-(54, '个人中心菜单', '个人中心菜单', 'routine_my_menus', '[{"name":"\\u83dc\\u5355\\u540d","title":"name","type":"input","param":""},{"name":"\\u56fe\\u6807(52*52)","title":"pic","type":"upload","param":""},{"name":"\\u5c0f\\u7a0b\\u5e8f\\u8df3\\u8f6c\\u8def\\u5f84","title":"url","type":"select","param":"\\/pages\\/user_address_list\\/index=>\\u5730\\u5740\\u7ba1\\u7406\\n\\/pages\\/user_vip\\/index=>\\u4f1a\\u5458\\u4e2d\\u5fc3\\n\\/pages\\/user_spread_user\\/index=>\\u63a8\\u5e7f\\u4e2d\\u5fc3\\n\\/pages\\/user_money\\/index=>\\u6211\\u7684\\u4f59\\u989d\\n\\/pages\\/user_goods_collection\\/index=>\\u6211\\u7684\\u6536\\u85cf\\n\\/pages\\/user_coupon\\/index=>\\u4f18\\u60e0\\u5238\\n\\/pages\\/admin\\/index=>\\u540e\\u53f0\\u8ba2\\u5355\\u7ba1\\u7406\\n\\/pages\\/service\\/index=>\\u8054\\u7cfb\\u5ba2\\u670d"},{"name":"\\u516c\\u4f17\\u53f7\\u8df3\\u8f6c\\u8def\\u5f84","title":"wap_url","type":"select","param":"\\/user\\/add_manage=>\\u5730\\u5740\\u7ba1\\u7406\\n\\/user\\/vip=>\\u4f1a\\u5458\\u4e2d\\u5fc3\\n\\/user\\/user_promotion=>\\u63a8\\u5e7f\\u4e2d\\u5fc3\\n\\/user\\/account=>\\u6211\\u7684\\u4f59\\u989d\\n\\/collection=>\\u6211\\u7684\\u6536\\u85cf\\n\\/user\\/user_coupon=>\\u4f18\\u60e0\\u5238\\n\\/customer\\/list=>\\u5ba2\\u670d\\u5217\\u8868"}]'),
+(54, '个人中心菜单', '个人中心菜单', 'routine_my_menus', '[{\"name\":\"\\u83dc\\u5355\\u540d\",\"title\":\"name\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u56fe\\u6807(52*52)\",\"title\":\"pic\",\"type\":\"upload\",\"param\":\"\"},{\"name\":\"\\u5c0f\\u7a0b\\u5e8f\\u8df3\\u8f6c\\u8def\\u5f84\",\"title\":\"url\",\"type\":\"select\",\"param\":\"\\/pages\\/user_address_list\\/index=>\\u5730\\u5740\\u7ba1\\u7406\\n\\/pages\\/user_vip\\/index=>\\u4f1a\\u5458\\u4e2d\\u5fc3\\n\\/pages\\/activity\\/user_goods_bargain_list\\/index=>\\u780d\\u4ef7\\u8bb0\\u5f55\\n\\/pages\\/user_spread_user\\/index=>\\u63a8\\u5e7f\\u4e2d\\u5fc3\\n\\/pages\\/user_money\\/index=>\\u6211\\u7684\\u4f59\\u989d\\n\\/pages\\/user_goods_collection\\/index=>\\u6211\\u7684\\u6536\\u85cf\\n\\/pages\\/user_coupon\\/index=>\\u4f18\\u60e0\\u5238\\n\\/pages\\/admin\\/index=>\\u540e\\u53f0\\u8ba2\\u5355\\u7ba1\\u7406\\n\\/pages\\/service\\/index=>\\u8054\\u7cfb\\u5ba2\\u670d\"},{\"name\":\"\\u516c\\u4f17\\u53f7\\u8df3\\u8f6c\\u8def\\u5f84\",\"title\":\"wap_url\",\"type\":\"select\",\"param\":\"\\/user\\/add_manage=>\\u5730\\u5740\\u7ba1\\u7406\\n\\/user\\/vip=>\\u4f1a\\u5458\\u4e2d\\u5fc3\\n\\/activity\\/bargain\\/record=>\\u780d\\u4ef7\\u8bb0\\u5f55\\n\\/user\\/user_promotion=>\\u63a8\\u5e7f\\u4e2d\\u5fc3\\n\\/user\\/account=>\\u6211\\u7684\\u4f59\\u989d\\n\\/collection=>\\u6211\\u7684\\u6536\\u85cf\\n\\/user\\/user_coupon=>\\u4f18\\u60e0\\u5238\\n\\/customer\\/list=>\\u5ba2\\u670d\\u5217\\u8868\\n\\/customer\\/index=>\\u540e\\u53f0\\u8ba2\\u5355\\u7ba1\\u7406\\n\\/order\\/order_cancellation=>\\u8ba2\\u5355\\u6838\\u9500\"}]'),
(55, '签到天数配置', '签到天数配置', 'sign_day_num', '[{"name":"\\u7b2c\\u51e0\\u5929","title":"day","type":"input","param":""},{"name":"\\u83b7\\u53d6\\u79ef\\u5206","title":"sign_num","type":"input","param":""}]'),
(56, '热门搜索', '热门搜索', 'routine_hot_search', '[{"name":"\\u6807\\u7b7e","title":"title","type":"input","param":""}]'),
(57, '热门榜单推荐图片', '热门榜单推荐图片', 'routine_home_hot_banner', '[{"name":"\\u56fe\\u7247","title":"img","type":"upload","param":""},{"name":"\\u63cf\\u8ff0","title":"comment","type":"input","param":""}]'),
@@ -1600,10 +2999,10 @@ INSERT INTO `eb_system_group` (`id`, `name`, `info`, `config_name`, `fields`) VA
CREATE TABLE IF NOT EXISTS `eb_system_group_data` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '组合数据详情ID',
- `gid` int(11) NOT NULL COMMENT '对应的数据组id',
+ `gid` int(11) NOT NULL DEFAULT '0' COMMENT '对应的数据组id',
`value` text NOT NULL COMMENT '数据组对应的数据值(json数据)',
- `add_time` int(10) NOT NULL COMMENT '添加数据时间',
- `sort` int(11) NOT NULL COMMENT '数据排序',
+ `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加数据时间',
+ `sort` int(11) NOT NULL DEFAULT '0' COMMENT '数据排序',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态(1:开启;2:关闭;)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='组合数据详情表' AUTO_INCREMENT=176 ;
@@ -1613,6 +3012,8 @@ CREATE TABLE IF NOT EXISTS `eb_system_group_data` (
--
INSERT INTO `eb_system_group_data` (`id`, `gid`, `value`, `add_time`, `sort`, `status`) VALUES
+(89, 38, '{"banner":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc730dead2.png"}}', 1527153599, 1, 1),
+(91, 37, '{"img":{"type":"upload","value":"http:\\/\\/www.crmeb3.net\\/uploads\\/config\\/image\\/20190712\\/9a79a97de87d099f4e3a07ddff11a229.png"},"comment":{"type":"input","value":"\\u79d2\\u6740\\u5217\\u8868\\u9876\\u90e8baaner"}}', 1528688012, 1, 1),
(99, 47, '{"name":{"type":"input","value":"\\u5546\\u54c1\\u5206\\u7c7b"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddc9f34bfd.png"},"url":{"type":"select","value":"\\/pages\\/goods_cate\\/goods_cate"},"show":{"type":"radio","value":"1"},"wap_url":{"type":"select","value":"\\/category"}}', 1533721963, 8, 1),
(100, 47, '{"name":{"type":"input","value":"\\u9886\\u4f18\\u60e0\\u5238"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddccecb7f3.png"},"url":{"type":"select","value":"\\/pages\\/user_get_coupon\\/index"},"show":{"type":"radio","value":"2"},"wap_url":{"type":"select","value":"\\/user\\/get_coupon"}}', 1533722009, 7, 1),
(101, 47, '{"name":{"type":"input","value":"\\u884c\\u4e1a\\u8d44\\u8baf"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddcec57a80.png"},"url":{"type":"select","value":"\\/pages\\/news_list\\/index"},"show":{"type":"radio","value":"2"},"wap_url":{"type":"select","value":"\\/news_list"}}', 1533722037, 6, 1),
@@ -1630,9 +3031,13 @@ INSERT INTO `eb_system_group_data` (`id`, `gid`, `value`, `add_time`, `sort`, `s
(121, 50, '{"info":{"type":"input","value":"CRMEB\\u7535\\u5546\\u7cfb\\u7edf V 3.0 \\u5373\\u5c06\\u4e0a\\u7ebf\\uff01"},"url":{"type":"select","value":"\\/pages\\/news_list\\/index"},"show":{"type":"radio","value":"2"},"wap_url":{"type":"select","value":"\\/news_list"}}', 1552611989, 1, 1),
(122, 50, '{"info":{"type":"input","value":"CRMEB\\u7535\\u5546\\u7cfb\\u7edf V 3.0 \\u5373\\u5c06\\u4e0a\\u7ebf\\uff01"},"url":{"type":"select","value":"\\/pages\\/news_list\\/index"},"show":{"type":"radio","value":"2"},"wap_url":{"type":"select","value":"\\/news_list"}}', 1552612003, 1, 1),
(123, 50, '{"info":{"type":"input","value":"CRMEB\\u7535\\u5546\\u7cfb\\u7edf V 3.0 \\u5373\\u5c06\\u4e0a\\u7ebf\\uff01"},"url":{"type":"select","value":"\\/pages\\/news_list\\/index"},"show":{"type":"radio","value":"2"},"wap_url":{"type":"select","value":"\\/news_list"}}', 1552613047, 1, 1),
+(124, 51, '{"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccf7e9f4d0.jpg"},"title":{"type":"input","value":"\\u4e00\\u8d77\\u6765\\u62fc\\u56e2"},"info":{"type":"input","value":"\\u4f18\\u60e0\\u591a\\u591a"},"link":{"type":"select","value":"\\/pages\\/activity\\/goods_combination\\/index"},"wap_link":{"type":"select","value":"\\/activity\\/group"}}', 1552620002, 3, 1),
+(125, 51, '{"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccf7e97660.jpg"},"title":{"type":"input","value":"\\u79d2\\u6740\\u4e13\\u533a"},"info":{"type":"input","value":"\\u65b0\\u80fd\\u6e90\\u6c7d\\u8f66\\u706b\\u70ed\\u9500\\u552e"},"link":{"type":"select","value":"\\/pages\\/activity\\/goods_seckill\\/index"},"wap_link":{"type":"select","value":"\\/activity\\/goods_seckill"}}', 1552620022, 2, 1),
+(126, 51, '{"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccfc86a6c1.jpg"},"title":{"type":"input","value":"\\u780d\\u4ef7\\u6d3b\\u52a8"},"info":{"type":"input","value":"\\u547c\\u670b\\u5524\\u53cb\\u6765\\u780d\\u4ef7~~~"},"link":{"type":"select","value":"\\/pages\\/activity\\/goods_bargain\\/index"},"wap_link":{"type":"select","value":"\\/activity\\/bargain"}}', 1552620041, 1, 1),
(127, 52, '{"img":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/04\\/13\\/5cb18e247a1a9.jpg"},"comment":{"type":"input","value":"\\u7cbe\\u54c1\\u63a8\\u8350750*282"},"link":{"type":"input","value":"\\/pages\\/first-new-product\\/index"},"wap_link":{"type":"input","value":"\\/hot_new_goods\\/1"}}', 1552633893, 1, 1),
(128, 52, '{"img":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9e015bdc6f5.jpg"},"comment":{"type":"input","value":"\\u7cbe\\u54c1\\u63a8\\u8350750*282"},"link":{"type":"input","value":"\\/pages\\/first-new-product\\/index"},"wap_link":{"type":"input","value":"\\/hot_new_goods\\/1"}}', 1552633912, 1, 1),
(135, 54, '{"name":{"type":"input","value":"\\u4f1a\\u5458\\u4e2d\\u5fc3"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc9934a7c.png"},"url":{"type":"select","value":"\\/pages\\/user_vip\\/index"},"wap_url":{"type":"select","value":"\\/user\\/vip"}}', 1553779918, 1, 1),
+(136, 54, '{"name":{"type":"input","value":"\\u780d\\u4ef7\\u8bb0\\u5f55"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc9918091.png"},"url":{"type":"select","value":"\\/pages\\/activity\\/user_goods_bargain_list\\/index"},"wap_url":{"type":"select","value":"\\/activity\\/bargain\\/record"}}', 1553779935, 1, 1),
(137, 54, '{"name":{"type":"input","value":"\\u6211\\u7684\\u63a8\\u5e7f"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc9943575.png"},"url":{"type":"select","value":"\\/pages\\/user_spread_user\\/index"},"wap_url":{"type":"select","value":"\\/user\\/user_promotion"}}', 1553779950, 1, 1),
(138, 54, '{"name":{"type":"input","value":"\\u6211\\u7684\\u4f59\\u989d"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc992db31.png"},"url":{"type":"select","value":"\\/pages\\/user_money\\/index"},"wap_url":{"type":"select","value":"\\/user\\/account"}}', 1553779973, 1, 1),
(139, 54, '{"name":{"type":"input","value":"\\u5730\\u5740\\u4fe1\\u606f"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc99101a8.png"},"url":{"type":"select","value":"\\/pages\\/user_address_list\\/index"},"wap_url":{"type":"select","value":"\\/user\\/add_manage"}}', 1553779988, 1, 1),
@@ -1654,18 +3059,24 @@ INSERT INTO `eb_system_group_data` (`id`, `gid`, `value`, `add_time`, `sort`, `s
(155, 58, '{"img":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9cd03224d59.jpg"},"comment":{"type":"input","value":"1"},"link":{"type":"input","value":"#"},"wap_link":{"type":"input","value":"#"}}', 1553780869, 1, 1),
(156, 59, '{"img":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9cd03224d59.jpg"},"comment":{"type":"input","value":"1"},"link":{"type":"input","value":"#"}}', 1553780883, 1, 1),
(157, 56, '{"title":{"type":"input","value":"\\u5438\\u5c18\\u5668"}}', 1553782153, 1, 1),
+(158, 47, '{"name":{"type":"input","value":"\\u62fc\\u56e2\\u6d3b\\u52a8"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9dde013f63c.png"},"url":{"type":"select","value":"\\/pages\\/activity\\/goods_combination\\/index"},"show":{"type":"radio","value":"2"},"wap_url":{"type":"select","value":"\\/activity\\/group"}}', 1553849878, 3, 1),
(159, 47, '{"name":{"type":"input","value":"\\u79d2\\u6740\\u6d3b\\u52a8"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9dde246ad96.png"},"url":{"type":"select","value":"\\/pages\\/activity\\/goods_seckill\\/index"},"show":{"type":"radio","value":"2"},"wap_url":{"type":"select","value":"\\/activity\\/goods_seckill"}}', 1553849905, 2, 1),
+(160, 47, '{"name":{"type":"input","value":"\\u780d\\u4ef7\\u6d3b\\u52a8"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddedbed782.png"},"url":{"type":"select","value":"\\/pages\\/activity\\/goods_bargain\\/index"},"show":{"type":"radio","value":"2"},"wap_url":{"type":"select","value":"\\/activity\\/bargain"}}', 1553850093, 1, 1),
(161, 60, '{"title":{"type":"input","value":"\\u5206\\u4eab\\u6d77\\u62a5"},"pic":{"type":"upload","value":"http:\\/\\/kaifa.crmeb.net\\/uploads\\/attach\\/2019\\/08\\/20190810\\/887960975abc9a89e410db82e0089680.jpg"}}', 1553866489, 1, 1),
+(162, 54, '{"name":{"type":"input","value":"\\u780d\\u4ef7\\u8bb0\\u5f55"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc9918091.png"},"url":{"type":"select","value":"\\/pages\\/activity\\/user_goods_bargain_list\\/index"},"wap_url":{"type":"select","value":"\\/activity\\/bargain\\/record"}}', 1553866805, 1, 2),
(163, 56, '{"title":{"type":"input","value":"\\u52a0\\u6e7f\\u5668"}}', 1553869694, 1, 1),
(164, 56, '{"title":{"type":"input","value":"\\u9a6c\\u6876"}}', 1553869701, 1, 1),
(165, 56, '{"title":{"type":"input","value":"\\u70ed\\u6c34\\u5668"}}', 1553869710, 1, 1),
(167, 60, '{"title":{"type":"input","value":"1"},"pic":{"type":"upload","value":"http:\\/\\/kaifa.crmeb.net\\/uploads\\/attach\\/2019\\/08\\/20190810\\/623a4c225738606e4c65f93217050c86.jpg"}}', 1555063900, 1, 1),
(168, 60, '{"title":{"type":"input","value":"2"},"pic":{"type":"upload","value":"http:\\/\\/kaifa.crmeb.net\\/uploads\\/attach\\/2019\\/08\\/20190810\\/93669bff568cf8eb967670d9cd3ca78c.jpg"}}', 1555067377, 1, 1),
(169, 57, '{"img":{"type":"upload","value":"http:\\/\\/activity.crmeb.net\\/public\\/uploads\\/editor\\/20190605\\/5cf737bf264e4.jpg"},"comment":{"type":"input","value":"asd"}}', 1560149769, 1, 1),
-(172, 54, '{"name":{"type":"input","value":"\\u8054\\u7cfb\\u5ba2\\u670d"},"pic":{"type":"upload","value":"http:\\/\\/kaifa.crmeb.net\\/uploads\\/attach\\/2019\\/07\\/20190730\\/0ded3d3f72d654fb33c8c9f30a268c97.png"},"url":{"type":"select","value":"\\/pages\\/user_address_list\\/index"},"wap_url":{"type":"select","value":"\\/customer\\/list"}}', 1564482010, 1, 1),
+(170, 37, '{"img":{"type":"upload","value":"http:\\/\\/www.crmeb3.net\\/uploads\\/config\\/image\\/20190712\\/9a79a97de87d099f4e3a07ddff11a229.png"},"comment":{"type":"input","value":"\\u79d2\\u6740\\u5217\\u8868\\u9876\\u90e8baaner"}}', 1562900433, 1, 1),
+(171, 37, '{"img":{"type":"upload","value":"http:\\/\\/www.crmeb3.net\\/uploads\\/config\\/image\\/20190712\\/9a79a97de87d099f4e3a07ddff11a229.png"},"comment":{"type":"input","value":"\\u780d\\u4ef7\\u5217\\u8868\\u9876\\u90e8baaner"}}', 1562900852, 1, 1),
+(172, 54, '{"name":{"type":"input","value":"\\u8054\\u7cfb\\u5ba2\\u670d"},"pic":{"type":"upload","value":"http:\\/\\/kaifa.crmeb.net\\/uploads\\/attach\\/2019\\/07\\/20190730\\/0ded3d3f72d654fb33c8c9f30a268c97.png"},"url":{"type":"select","value":"\\/pages\\/service\\/index"},"wap_url":{"type":"select","value":"\\/customer\\/list"}}', 1564482010, 1, 1),
(173, 61, '{"fast_info":{"type":"input","value":"\\u4e0a\\u767e\\u79cd\\u5546\\u54c1\\u5206\\u7c7b\\u4efb\\u60a8\\u9009\\u62e9"},"bast_info":{"type":"input","value":"\\u8bda\\u610f\\u63a8\\u8350\\u54c1\\u8d28\\u5546\\u54c1"},"first_info":{"type":"input","value":"\\u591a\\u4e2a\\u4f18\\u8d28\\u5546\\u54c1\\u6700\\u65b0\\u4e0a\\u67b6"},"sales_info":{"type":"input","value":"\\u5e93\\u5b58\\u5546\\u54c1\\u4f18\\u60e0\\u4fc3\\u9500\\u6d3b\\u52a8"},"fast_number":{"type":"input","value":"10"},"bast_number":{"type":"input","value":"10"},"first_number":{"type":"input","value":"10"}}', 1565146071, 1, 1),
(174, 54, '{"name":{"type":"input","value":"\\u7edf\\u8ba1\\u7ba1\\u7406"},"pic":{"type":"upload","value":"http:\\/\\/kaifa.crmeb.net\\/uploads\\/attach\\/2019\\/08\\/20190808\\/87a240841283cb614f3ba308fd299866.png"},"url":{"type":"select","value":"\\/customer\\/index"},"wap_url":{"type":"select","value":"\\/customer\\/index"}}', 1565259184, 1, 1),
-(175, 53, '{"order_status":{"type":"select","value":"9"},"pic":{"type":"upload","value":"http:\\/\\/kaifa.crmeb.net\\/uploads\\/attach\\/2019\\/08\\/20190809\\/7ba5e7e9bcd1ed480fdd432b49a3161a.gif"}}', 1565317740, 1, 1);
+(175, 53, '{"order_status":{"type":"select","value":"9"},"pic":{"type":"upload","value":"http:\\/\\/kaifa.crmeb.net\\/uploads\\/attach\\/2019\\/08\\/20190809\\/7ba5e7e9bcd1ed480fdd432b49a3161a.gif"}}', 1565317740, 1, 1),
+(176, 54, '{\"name\":{\"type\":\"input\",\"value\":\"\\u8ba2\\u5355\\u6838\\u9500\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/crmeb30.net\\/uploads\\/attach\\/2019\\/09\\/19\\/0e79136c024cf1623acc42453beae1a8.jpg\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/service\\/index\"},\"wap_url\":{\"type\":\"select\",\"value\":\"\\/order\\/order_cancellation\"}}', '1569382895', '1', '1');
-- --------------------------------------------------------
@@ -1675,20 +3086,20 @@ INSERT INTO `eb_system_group_data` (`id`, `gid`, `value`, `add_time`, `sort`, `s
CREATE TABLE IF NOT EXISTS `eb_system_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '管理员操作记录ID',
- `admin_id` int(10) unsigned NOT NULL COMMENT '管理员id',
- `admin_name` varchar(64) NOT NULL COMMENT '管理员姓名',
- `path` varchar(128) NOT NULL COMMENT '链接',
- `page` varchar(64) NOT NULL COMMENT '行为',
- `method` varchar(12) NOT NULL COMMENT '访问类型',
- `ip` varchar(16) NOT NULL COMMENT '登录IP',
- `type` varchar(32) NOT NULL COMMENT '类型',
- `add_time` int(10) unsigned NOT NULL COMMENT '操作时间',
+ `admin_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理员id',
+ `admin_name` varchar(64) NOT NULL DEFAULT ''COMMENT '管理员姓名',
+ `path` varchar(128) NOT NULL DEFAULT '' COMMENT '链接',
+ `page` varchar(64) NOT NULL DEFAULT '' COMMENT '行为',
+ `method` varchar(12) NOT NULL DEFAULT '' COMMENT '访问类型',
+ `ip` varchar(16) NOT NULL DEFAULT '' COMMENT '登录IP',
+ `type` varchar(32) NOT NULL DEFAULT '' COMMENT '类型',
+ `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '操作时间',
`merchant_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商户id',
PRIMARY KEY (`id`) USING BTREE,
KEY `admin_id` (`admin_id`) USING BTREE,
KEY `add_time` (`add_time`) USING BTREE,
KEY `type` (`type`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='管理员操作记录表' AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='管理员操作记录表' AUTO_INCREMENT=29 ;
-- --------------------------------------------------------
@@ -1699,7 +3110,7 @@ CREATE TABLE IF NOT EXISTS `eb_system_log` (
CREATE TABLE IF NOT EXISTS `eb_system_menus` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
`pid` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '父级id',
- `icon` varchar(16) NOT NULL COMMENT '图标',
+ `icon` varchar(16) NOT NULL DEFAULT '' COMMENT '图标',
`menu_name` varchar(32) NOT NULL DEFAULT '' COMMENT '按钮名',
`module` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '模块名',
`controller` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '控制器',
@@ -1901,6 +3312,7 @@ INSERT INTO `eb_system_menus` (`id`, `pid`, `icon`, `menu_name`, `module`, `cont
(235, 148, '', '已发布管理', 'admin', 'ump.storeCouponIssue', 'index', '[]', 3, 1, 1),
(236, 82, '', '用户分组', 'admin', 'wechat.wechatUser', 'group', '[]', 0, 1, 1),
(237, 21, '', '刷新缓存', 'admin', 'system.clear', 'index', '[]', 0, 1, 1),
+(238, 272, '', '拼团产品', 'admin', 'ump.storeCombination', 'index', '[]', 0, 1, 1),
(239, 306, '', '提现申请', 'admin', 'finance.user_extract', 'index', '[]', 0, 1, 1),
(241, 273, '', '秒杀产品', 'admin', 'ump.storeSeckill', 'index', '[]', 0, 1, 1),
(244, 294, '', '财务报表', 'admin', 'record.storeStatistics', 'index', '[]', 0, 1, 1),
@@ -1910,6 +3322,7 @@ INSERT INTO `eb_system_menus` (`id`, `pid`, `icon`, `menu_name`, `module`, `cont
(249, 248, '', '个人资料提交保存', 'admin', 'system.systemAdmin', 'setAdminInfo', '[]', 0, 0, 1),
(250, 247, '', '个人资料展示页', 'admin', 'setting.systemAdmin', 'admininfo', '[]', 0, 0, 1),
(252, 21, '', '在线更新', 'admin', 'system.systemUpgradeclient', 'index', '[]', 0, 1, 1),
+(254, 271, '', '砍价产品', 'admin', 'ump.storeBargain', 'index', '[]', 0, 1, 1),
(255, 289, '', '后台通知', 'admin', 'setting.systemNotice', 'index', '[]', 0, 0, 1),
(261, 147, '', '编辑产品', 'admin', 'store.storeproduct', 'edit', '[]', 0, 0, 1),
(262, 147, '', '添加产品', 'admin', 'store.storeproduct', 'create', '[]', 0, 0, 1),
@@ -1919,6 +3332,8 @@ INSERT INTO `eb_system_menus` (`id`, `pid`, `icon`, `menu_name`, `module`, `cont
(266, 147, '', '产品编辑属性', 'admin', 'store.storeproduct', 'attr', '[]', 0, 0, 1),
(269, 0, 'cubes', '小程序', 'admin', 'routine', 'index', '[]', 92, 1, 1),
(270, 289, '', '支付配置', 'admin', 'setting.systemConfig', 'index', '{"type":"2","tab_id":"4"}', 120, 1, 1),
+(271, 286, '', '砍价管理', 'admin', '', '', '[]', 0, 1, 1),
+(272, 286, '', '拼团管理', 'admin', '', '', '[]', 0, 1, 1),
(273, 286, '', '秒杀管理', 'admin', '', '', '[]', 0, 1, 1),
(276, 469, '', '附件管理', 'admin', 'widget.images', 'index', '[]', 0, 0, 1),
(278, 469, '', '清除数据', 'admin', 'system.systemCleardata', 'index', '[]', 0, 1, 1),
@@ -1948,11 +3363,14 @@ INSERT INTO `eb_system_menus` (`id`, `pid`, `icon`, `menu_name`, `module`, `cont
(313, 308, '', '佣金记录', 'admin', 'finance.finance', 'commission_list', '[]', 0, 1, 1),
(314, 296, '', '积分统计', 'admin', 'record.record', 'chart_score', '[]', 0, 1, 1),
(315, 296, '', '优惠券统计', 'admin', 'record.record', 'chart_coupon', '[]', 0, 1, 1),
+(316, 296, '', '拼团统计', 'admin', 'record.record', 'chart_combination', '[]', 0, 1, 1),
(317, 296, '', '秒杀统计', 'admin', 'record.record', 'chart_seckill', '[]', 0, 1, 1),
+(318, 296, '', '砍价统计', 'admin', 'record.record', 'chart_bargain', '[]', 0, 1, 1),
(319, 297, '', '产品销售排行', 'admin', 'record.record', 'ranking_saleslists', '[]', 0, 1, 1),
(320, 297, '', '返佣排行', 'admin', 'record.record', 'ranking_commission', '[]', 0, 1, 1),
(321, 297, '', '积分排行', 'admin', 'record.record', 'ranking_point', '[]', 0, 1, 1),
(329, 285, '', '营销订单', 'admin', 'user', 'user', '[]', 0, 0, 1),
+(333, 272, '', '拼团列表', 'admin', 'ump.storeCombination', 'combina_list', '[]', 0, 1, 1),
(334, 329, '', '秒杀订单', 'admin', 'user', '', '[]', 0, 0, 1),
(335, 329, '', '积分兑换', 'admin', 'user', '', '[]', 0, 0, 1),
(337, 0, 'users', '分销', 'admin', 'agent', 'index', '[]', 106, 1, 1),
@@ -1970,6 +3388,9 @@ INSERT INTO `eb_system_menus` (`id`, `pid`, `icon`, `menu_name`, `module`, `cont
(363, 362, '', '上传图片', 'admin', 'widget.images', 'upload', '[]', 0, 0, 1),
(364, 362, '', '删除图片', 'admin', 'widget.images', 'delete', '[]', 0, 0, 1),
(365, 362, '', '附件管理', 'admin', 'widget.images', 'index', '[]', 0, 0, 1),
+(366, 254, '', '其它权限管理', '', '', '', '[]', 0, 0, 1),
+(367, 366, '', '编辑砍价', 'admin', 'ump.storeBargain', 'edit', '[]', 0, 0, 1),
+(368, 366, '', '砍价产品更新', 'admin', 'ump.storeBargain', 'update', '[]', 0, 1, 1),
(369, 143, '', '添加产品分类', 'admin', 'store.storeCategory', 'create', '[]', 0, 0, 1),
(370, 143, '', '编辑产品分类', 'admin', 'store.storeCategory', 'edit', '[]', 0, 0, 1),
(371, 337, '', '分销员管理', 'admin', 'agent.agentManage', 'index', '[]', 0, 1, 1),
@@ -2045,12 +3466,15 @@ INSERT INTO `eb_system_menus` (`id`, `pid`, `icon`, `menu_name`, `module`, `cont
(469, 21, '', '安全维护', 'admin', 'system', '', '[]', 0, 1, 1),
(470, 1, '', '配置组合数据展示页', 'admin', 'setting.systemGroup', 'index', '[]', 0, 0, 1),
(471, 462, '', '小程序精品推荐', 'admin', 'setting.system_group_data', 'index', '{"gid":"52"}', 0, 1, 1),
+(472, 462, '', '首页活动区域图片', 'admin', 'setting.system_group_data', 'index', '{"gid":"51"}', 0, 1, 1),
(473, 273, '', '秒杀配置', 'admin', 'setting.system_group_data', 'index', '{"gid":"49"}', 0, 1, 1),
(474, 289, '', '短信设置', 'admin', 'sms', 'index', '[]', 1, 1, 1),
(475, 474, '', '短信模板', 'admin', 'sms.smsTemplateApply', 'index', '[]', 0, 1, 1),
(477, 474, '', '短信购买', 'admin', 'sms.smsPay', 'index', '[]', 0, 1, 1),
(478, 474, '', '短信配置', 'admin', 'sms.smsConfig', 'index', '{"type":"4","tab_id":"18"}', 1, 1, 1),
-(479, 474, '', '公共短信模板', 'admin', 'sms.smsPublicTemp', 'index', '[]', 0, 1, 1);
+(479, 474, '', '公共短信模板', 'admin', 'sms.smsPublicTemp', 'index', '[]', 0, 1, 1),
+(480, 289, '', '门店设置', 'admin', 'system.system_store', 'index', '[]', '0', '1', '1'),
+(481, 462, '', '首页配置', 'admin', 'setting.system_group_data', 'index', '{\"gid\":\"61\"}', '0', '1', '1');
-- --------------------------------------------------------
@@ -2060,13 +3484,13 @@ INSERT INTO `eb_system_menus` (`id`, `pid`, `icon`, `menu_name`, `module`, `cont
CREATE TABLE IF NOT EXISTS `eb_system_notice` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '通知模板id',
- `title` varchar(64) NOT NULL COMMENT '通知标题',
- `type` varchar(64) NOT NULL COMMENT '通知类型',
- `icon` varchar(16) NOT NULL COMMENT '图标',
- `url` varchar(64) NOT NULL COMMENT '链接',
- `table_title` varchar(256) NOT NULL COMMENT '通知数据',
- `template` varchar(64) NOT NULL COMMENT '通知模板',
- `push_admin` varchar(128) NOT NULL COMMENT '通知管理员id',
+ `title` varchar(64) NOT NULL DEFAULT '' COMMENT '通知标题',
+ `type` varchar(64) NOT NULL DEFAULT '' COMMENT '通知类型',
+ `icon` varchar(16) NOT NULL DEFAULT '' COMMENT '图标',
+ `url` varchar(64) NOT NULL DEFAULT '' COMMENT '链接',
+ `table_title` varchar(256) NOT NULL DEFAULT '' COMMENT '通知数据',
+ `template` varchar(64) NOT NULL DEFAULT '' COMMENT '通知模板',
+ `push_admin` varchar(128) NOT NULL DEFAULT '' COMMENT '通知管理员id',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `type` (`type`) USING BTREE,
@@ -2088,7 +3512,7 @@ CREATE TABLE IF NOT EXISTS `eb_system_notice_admin` (
`is_click` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '点击次数',
`is_visit` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '访问次数',
`visit_time` int(11) NOT NULL COMMENT '访问时间',
- `add_time` int(10) unsigned NOT NULL COMMENT '通知时间',
+ `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '通知时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `admin_id` (`admin_id`,`notice_type`) USING BTREE,
KEY `add_time` (`add_time`) USING BTREE,
@@ -2216,12 +3640,12 @@ CREATE TABLE IF NOT EXISTS `eb_user` (
`nickname` varchar(16) NOT NULL COMMENT '用户昵称',
`avatar` varchar(256) NOT NULL COMMENT '用户头像',
`phone` char(15) DEFAULT NULL COMMENT '手机号码',
- `add_time` int(11) unsigned NOT NULL COMMENT '添加时间',
- `add_ip` varchar(16) NOT NULL COMMENT '添加ip',
- `last_time` int(11) unsigned NOT NULL COMMENT '最后一次登录时间',
- `last_ip` varchar(16) NOT NULL COMMENT '最后一次登录ip',
+ `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
+ `add_ip` varchar(16) NOT NULL DEFAULT '' COMMENT '添加ip',
+ `last_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最后一次登录时间',
+ `last_ip` varchar(16) NOT NULL DEFAULT '' COMMENT '最后一次登录ip',
`now_money` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '用户余额',
- `brokerage_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '佣金金额',
+ `brokerage_price` decimal(8,2) NOT NULL DEFAULT '0' COMMENT '佣金金额',
`integral` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '用户剩余积分',
`sign_num` int(11) NOT NULL DEFAULT '0' COMMENT '连续签到天数',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1为正常,0为禁止',
@@ -2253,18 +3677,18 @@ CREATE TABLE IF NOT EXISTS `eb_user` (
CREATE TABLE IF NOT EXISTS `eb_user_address` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户地址id',
`uid` int(10) unsigned NOT NULL COMMENT '用户id',
- `real_name` varchar(32) NOT NULL COMMENT '收货人姓名',
- `phone` varchar(16) NOT NULL COMMENT '收货人电话',
- `province` varchar(64) NOT NULL COMMENT '收货人所在省',
- `city` varchar(64) NOT NULL COMMENT '收货人所在市',
- `district` varchar(64) NOT NULL COMMENT '收货人所在区',
- `detail` varchar(256) NOT NULL COMMENT '收货人详细地址',
+ `real_name` varchar(32) NOT NULL DEFAULT ''COMMENT '收货人姓名',
+ `phone` varchar(16) NOT NULL DEFAULT '' COMMENT '收货人电话',
+ `province` varchar(64) NOT NULL DEFAULT '' COMMENT '收货人所在省',
+ `city` varchar(64) NOT NULL DEFAULT '' COMMENT '收货人所在市',
+ `district` varchar(64) NOT NULL DEFAULT '' COMMENT '收货人所在区',
+ `detail` varchar(256) NOT NULL DEFAULT '' COMMENT '收货人详细地址',
`post_code` int(10) unsigned NOT NULL COMMENT '邮编',
`longitude` varchar(16) NOT NULL DEFAULT '0' COMMENT '经度',
`latitude` varchar(16) NOT NULL DEFAULT '0' COMMENT '纬度',
`is_default` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否默认',
`is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除',
- `add_time` int(10) unsigned NOT NULL COMMENT '添加时间',
+ `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `uid` (`uid`) USING BTREE,
KEY `is_default` (`is_default`) USING BTREE,
@@ -2282,12 +3706,12 @@ CREATE TABLE IF NOT EXISTS `eb_user_bill` (
`uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户uid',
`link_id` varchar(32) NOT NULL DEFAULT '0' COMMENT '关联id',
`pm` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 = 支出 1 = 获得',
- `title` varchar(64) NOT NULL COMMENT '账单标题',
- `category` varchar(64) NOT NULL COMMENT '明细种类',
+ `title` varchar(64) NOT NULL DEFAULT '' COMMENT '账单标题',
+ `category` varchar(64) NOT NULL DEFAULT '' COMMENT '明细种类',
`type` varchar(64) NOT NULL DEFAULT '' COMMENT '明细类型',
`number` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '明细数字',
`balance` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '剩余',
- `mark` varchar(512) NOT NULL COMMENT '备注',
+ `mark` varchar(512) NOT NULL DEFAULT '' COMMENT '备注',
`add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 = 带确定 1 = 有效 -1 = 无效',
PRIMARY KEY (`id`) USING BTREE,
@@ -2306,20 +3730,20 @@ CREATE TABLE IF NOT EXISTS `eb_user_bill` (
CREATE TABLE IF NOT EXISTS `eb_user_enter` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '商户申请ID',
- `uid` int(10) unsigned NOT NULL COMMENT '用户ID',
- `province` varchar(32) NOT NULL COMMENT '商户所在省',
- `city` varchar(32) NOT NULL COMMENT '商户所在市',
- `district` varchar(32) NOT NULL COMMENT '商户所在区',
- `address` varchar(256) NOT NULL COMMENT '商户详细地址',
- `merchant_name` varchar(256) NOT NULL COMMENT '商户名称',
- `link_user` varchar(32) NOT NULL,
- `link_tel` varchar(16) NOT NULL COMMENT '商户电话',
- `charter` varchar(512) NOT NULL COMMENT '商户证书',
- `add_time` int(10) unsigned NOT NULL COMMENT '添加时间',
- `apply_time` int(10) unsigned NOT NULL COMMENT '审核时间',
+ `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
+ `province` varchar(32) NOT NULL DEFAULT '' COMMENT '商户所在省',
+ `city` varchar(32) NOT NULL DEFAULT '' COMMENT '商户所在市',
+ `district` varchar(32) NOT NULL DEFAULT '' COMMENT '商户所在区',
+ `address` varchar(256) NOT NULL DEFAULT '' COMMENT '商户详细地址',
+ `merchant_name` varchar(256) NOT NULL DEFAULT '' COMMENT '商户名称',
+ `link_user` varchar(32) NOT NULL DEFAULT '',
+ `link_tel` varchar(16) NOT NULL DEFAULT '' COMMENT '商户电话',
+ `charter` varchar(512) NOT NULL DEFAULT '' COMMENT '商户证书',
+ `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
+ `apply_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '审核时间',
`success_time` int(11) NOT NULL COMMENT '通过时间',
- `fail_message` varchar(256) NOT NULL COMMENT '未通过原因',
- `fail_time` int(10) unsigned NOT NULL COMMENT '未通过时间',
+ `fail_message` varchar(256) NOT NULL DEFAULT '' COMMENT '未通过原因',
+ `fail_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '未通过时间',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '-1 审核未通过 0未审核 1审核通过',
`is_lock` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 = 开启 1= 关闭',
`is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除',
@@ -2409,8 +3833,8 @@ CREATE TABLE IF NOT EXISTS `eb_user_notice` (
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息通知类型(1:系统消息;2:用户通知)',
`user` varchar(20) NOT NULL DEFAULT '' COMMENT '发送人',
`title` varchar(20) NOT NULL COMMENT '通知消息的标题信息',
- `content` varchar(500) NOT NULL COMMENT '通知消息的内容',
- `add_time` int(11) NOT NULL COMMENT '通知消息发送的时间',
+ `content` varchar(500) NOT NULL DEFAULT '' COMMENT '通知消息的内容',
+ `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '通知消息发送的时间',
`is_send` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否发送(0:未发送;1:已发送)',
`send_time` int(11) NOT NULL COMMENT '发送时间',
PRIMARY KEY (`id`) USING BTREE
@@ -2424,9 +3848,9 @@ CREATE TABLE IF NOT EXISTS `eb_user_notice` (
CREATE TABLE IF NOT EXISTS `eb_user_notice_see` (
`id` int(11) NOT NULL AUTO_INCREMENT,
- `nid` int(11) NOT NULL COMMENT '查看的通知id',
- `uid` int(11) NOT NULL COMMENT '查看通知的用户id',
- `add_time` int(11) NOT NULL COMMENT '查看通知的时间',
+ `nid` int(11) NOT NULL DEFAULT '0' COMMENT '查看的通知id',
+ `uid` int(11) NOT NULL DEFAULT '0' COMMENT '查看通知的用户id',
+ `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '查看通知的时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户通知发送记录表' AUTO_INCREMENT=1 ;
@@ -2508,10 +3932,10 @@ CREATE TABLE IF NOT EXISTS `eb_user_token` (
CREATE TABLE IF NOT EXISTS `eb_wechat_media` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信视频音频id',
- `type` varchar(16) NOT NULL COMMENT '回复类型',
- `path` varchar(128) NOT NULL COMMENT '文件路径',
- `media_id` varchar(64) NOT NULL COMMENT '微信服务器返回的id',
- `url` varchar(256) NOT NULL COMMENT '地址',
+ `type` varchar(16) NOT NULL DEFAULT '' COMMENT '回复类型',
+ `path` varchar(128) NOT NULL DEFAULT '' COMMENT '文件路径',
+ `media_id` varchar(64) NOT NULL DEFAULT '' COMMENT '微信服务器返回的id',
+ `url` varchar(256) NOT NULL DEFAULT '' COMMENT '地址',
`temporary` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否永久或者临时 0永久1临时',
`add_time` int(10) unsigned NOT NULL COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
@@ -2527,10 +3951,10 @@ CREATE TABLE IF NOT EXISTS `eb_wechat_media` (
CREATE TABLE IF NOT EXISTS `eb_wechat_message` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户行为记录id',
- `openid` varchar(32) NOT NULL COMMENT '用户openid',
- `type` varchar(32) NOT NULL COMMENT '操作类型',
- `result` varchar(512) NOT NULL COMMENT '操作详细记录',
- `add_time` int(10) unsigned NOT NULL COMMENT '操作时间',
+ `openid` varchar(32) NOT NULL DEFAULT '' COMMENT '用户openid',
+ `type` varchar(32) NOT NULL DEFAULT '' COMMENT '操作类型',
+ `result` varchar(512) NOT NULL DEFAULT '' COMMENT '操作详细记录',
+ `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '操作时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `openid` (`openid`) USING BTREE,
KEY `type` (`type`) USING BTREE,
@@ -2548,8 +3972,8 @@ CREATE TABLE IF NOT EXISTS `eb_wechat_news_category` (
`cate_name` varchar(255) NOT NULL COMMENT '图文名称',
`sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态',
- `new_id` varchar(255) NOT NULL COMMENT '文章id',
- `add_time` varchar(255) NOT NULL COMMENT '添加时间',
+ `new_id` varchar(255) NOT NULL DEFAULT '' COMMENT '文章id',
+ `add_time` varchar(255) NOT NULL DEFAULT '' COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='图文消息管理表' AUTO_INCREMENT=31 ;
@@ -2568,14 +3992,14 @@ INSERT INTO `eb_wechat_news_category` (`id`, `cate_name`, `sort`, `status`, `new
CREATE TABLE IF NOT EXISTS `eb_wechat_qrcode` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信二维码ID',
- `third_type` varchar(32) NOT NULL COMMENT '二维码类型',
- `third_id` int(11) unsigned NOT NULL COMMENT '用户id',
- `ticket` varchar(255) NOT NULL COMMENT '二维码参数',
+ `third_type` varchar(32) NOT NULL DEFAULT '' COMMENT '二维码类型',
+ `third_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
+ `ticket` varchar(255) NOT NULL DEFAULT '' COMMENT '二维码参数',
`expire_seconds` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '二维码有效时间',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态',
- `add_time` varchar(255) NOT NULL COMMENT '添加时间',
- `url` varchar(255) NOT NULL COMMENT '微信访问url',
- `qrcode_url` varchar(255) NOT NULL COMMENT '微信二维码url',
+ `add_time` varchar(255) NOT NULL DEFAULT '0' COMMENT '添加时间',
+ `url` varchar(255) NOT NULL DEFAULT '' COMMENT '微信访问url',
+ `qrcode_url` varchar(255) NOT NULL DEFAULT '' COMMENT '微信二维码url',
`scan` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '被扫的次数',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `third_type` (`third_type`,`third_id`) USING BTREE,
@@ -2590,8 +4014,8 @@ CREATE TABLE IF NOT EXISTS `eb_wechat_qrcode` (
CREATE TABLE IF NOT EXISTS `eb_wechat_reply` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信关键字回复id',
- `key` varchar(64) NOT NULL COMMENT '关键字',
- `type` varchar(32) NOT NULL COMMENT '回复类型',
+ `key` varchar(64) NOT NULL DEFAULT '' COMMENT '关键字',
+ `type` varchar(32) NOT NULL DEFAULT '' COMMENT '回复类型',
`data` text NOT NULL COMMENT '回复数据',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '0=不可用 1 =可用',
`hide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隐藏',
@@ -2610,11 +4034,11 @@ CREATE TABLE IF NOT EXISTS `eb_wechat_reply` (
CREATE TABLE IF NOT EXISTS `eb_wechat_template` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '模板id',
- `tempkey` char(50) NOT NULL COMMENT '模板编号',
- `name` char(100) NOT NULL COMMENT '模板名',
- `content` varchar(1000) NOT NULL COMMENT '回复内容',
+ `tempkey` char(50) NOT NULL DEFAULT '' COMMENT '模板编号',
+ `name` char(100) NOT NULL DEFAULT '' COMMENT '模板名',
+ `content` varchar(1000) NOT NULL DEFAULT '' COMMENT '回复内容',
`tempid` char(100) DEFAULT NULL COMMENT '模板ID',
- `add_time` varchar(15) NOT NULL COMMENT '添加时间',
+ `add_time` varchar(15) NOT NULL DEFAULT '0' COMMENT '添加时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态',
PRIMARY KEY (`id`) USING BTREE,
KEY `tempkey` (`tempkey`) USING BTREE
@@ -2637,7 +4061,7 @@ INSERT INTO `eb_wechat_template` (`id`, `tempkey`, `name`, `content`, `tempid`,
(12, 'OPENTM205213550', '订单生成通知', '{{first.DATA}}\n时间:{{keyword1.DATA}}\n商品名称:{{keyword2.DATA}}\n订单号:{{keyword3.DATA}}\n{{remark.DATA}}', 'HYD99ERso6_PcA3hAT6pzH1RmO88H6IIe8crAVaXPRE', '1528966701', 1),
(13, 'OPENTM207791277', '订单支付成功通知', '{{first.DATA}}\n订单编号:{{keyword1.DATA}}\n支付金额:{{keyword2.DATA}}\n{{remark.DATA}}', 'hJV1d1OwWB_lbPrSaRHi9RGr5CFAF4PJcZdYeg73Mtg', '1528966759', 1),
(14, 'OPENTM410292733', '砍价成功提醒', '{{first.DATA}}\n商品名称:{{keyword1.DATA}}\n底价:{{keyword2.DATA}}\n{{remark.DATA}}', 'SxBvid65JxK6PWOhlC2sgCG_mlopY1uKekEnEvAALp4', '1564566678', 1),
-(15, 'OPENTM414349441', '开团成功通知', '{{first.DATA}}\n拼团名称:{{keyword1.DATA}}\n团购价格:{{keyword2.DATA}}\n拼团人数:{{keyword3.DATA}}\n{{remark.DATA}}', 'VDTU6X1UiK438tu-qcHKc_I76CtsEWVx-_Pbf1voiws', '1564567037', 1);
+(15, 'OPENTM414349441', '开团成功通知', '{{first.DATA}}\n拼团名称:{{keyword1.DATA}}\n团购价格:{{keyword2.DATA}}\n拼团人数:{{keyword3.DATA}}\n{{remark.DATA}}', 'VDTU6X1UiK438tu-qcHKc_I76CtsEWVx-_Pbf1voiws', '1564567037', 1) ;
-- --------------------------------------------------------
diff --git a/crmeb/public/install/index.php b/crmeb/public/install/index.php
index 3374bcc2..40d7f84b 100644
--- a/crmeb/public/install/index.php
+++ b/crmeb/public/install/index.php
@@ -336,6 +336,11 @@ switch ($step) {
$addadminsql = "INSERT INTO `{$dbPrefix}system_admin` (`id`, `account`, `pwd`, `real_name`, `roles`, `last_ip`, `last_time`, `add_time`, `login_count`, `level`, `status`, `is_del`) VALUES
(1, '".$username."', '".$password."', 'admin', '1', '".$ip."',$time , $time, 0, 0, 1, 0)";
$res = mysqli_query($conn,$addadminsql);
+ $res2 = true;
+ if(isset($_SERVER['SERVER_NAME'])) {
+ $site_url = '\'"http://' . $_SERVER['SERVER_NAME'].'"\'';
+ $res2 = mysqli_query($conn, 'UPDATE `'.$dbPrefix.'system_config` SET `value`=' . $site_url . ' WHERE `menu_name`="site_url"');
+ }
if($res){
$message = '成功添加管理员
成功写入配置文件
安装完成.';
$arr = array('n' => 999999, 'msg' => $message);
@@ -345,6 +350,7 @@ switch ($step) {
$arr = array('n' => 999999, 'msg' => $message);
echo json_encode($arr);exit;
}
+
}
include_once ("./templates/step4.php");
exit();
diff --git a/crmeb/public/static/exception.tpl b/crmeb/public/static/exception.tpl
new file mode 100644
index 00000000..28b93166
--- /dev/null
+++ b/crmeb/public/static/exception.tpl
@@ -0,0 +1,213 @@
+'.end($names).'';
+ }
+}
+
+if(!function_exists('parse_file')){
+ function parse_file($file, $line)
+ {
+ return ''.basename($file)." line {$line}".'';
+ }
+}
+
+if(!function_exists('parse_args')){
+ function parse_args($args)
+ {
+ $result = [];
+
+ foreach ($args as $key => $item) {
+ switch (true) {
+ case is_object($item):
+ $value = sprintf('object(%s)', parse_class(get_class($item)));
+ break;
+ case is_array($item):
+ if(count($item) > 3){
+ $value = sprintf('[%s, ...]', parse_args(array_slice($item, 0, 3)));
+ } else {
+ $value = sprintf('[%s]', parse_args($item));
+ }
+ break;
+ case is_string($item):
+ if(strlen($item) > 20){
+ $value = sprintf(
+ '\'%s...\'',
+ htmlentities($item),
+ htmlentities(substr($item, 0, 20))
+ );
+ } else {
+ $value = sprintf("'%s'", htmlentities($item));
+ }
+ break;
+ case is_int($item):
+ case is_float($item):
+ $value = $item;
+ break;
+ case is_null($item):
+ $value = 'null';
+ break;
+ case is_bool($item):
+ $value = '' . ($item ? 'true' : 'false') . '';
+ break;
+ case is_resource($item):
+ $value = 'resource';
+ break;
+ default:
+ $value = htmlentities(str_replace("\n", '', var_export(strval($item), true)));
+ break;
+ }
+
+ $result[] = is_int($key) ? $value : "'{$key}' => {$value}";
+ }
+
+ return implode(', ', $result);
+ }
+}
+
+
+?>
+
+
+
+
+ 系统发生错误
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/crmeb/route/api/route.php b/crmeb/route/api/route.php
index d663c5e7..775e62f5 100644
--- a/crmeb/route/api/route.php
+++ b/crmeb/route/api/route.php
@@ -37,10 +37,12 @@ Route::group(function () {
Route::get('admin/order/time', 'admin.StoreOrderController/time')->name('adminOrderTime');//订单交易额时间统计
Route::post('admin/order/offline', 'admin.StoreOrderController/offline')->name('adminOrderOffline');//订单支付
Route::post('admin/order/refund', 'admin.StoreOrderController/refund')->name('adminOrderRefund');//订单退款
+ Route::post('order/order_verific','order.StoreOrderController/order_verific')->name('order');//订单核销
})->middleware(\app\http\middleware\AllowOriginMiddleware::class)->middleware(\app\http\middleware\AuthTokenMiddleware::class, true)->middleware(\app\http\middleware\CustomerMiddleware::class);
//会员授权接口
Route::group(function () {
+
Route::get('logout', 'AuthController/logout')->name('logout');// 退出登录
Route::post('switch_h5', 'AuthController/switch_h5')->name('switch_h5');// 切换账号
Route::post('binding', 'AuthController/binding_phone')->name('bindingPhone');// 绑定手机号
@@ -70,6 +72,9 @@ Route::group(function () {
Route::post('collect/add', 'user.UserController/collect_add')->name('collectAdd');//添加收藏
Route::post('collect/del', 'user.UserController/collect_del')->name('collectDel');//取消收藏
Route::post('collect/all', 'user.UserController/collect_all')->name('collectAll');//批量添加收藏
+
+ Route::get('brokerage_rank','user.UserController/brokerage_rank')->name('brokerageRank');//佣金排行
+ Route::get('rank','user.UserController/rank')->name('rank');//推广人排行
//用戶类 分享
Route::post('user/share', 'PublicController/user_share')->name('user_share');//记录用户分享
//用户类 点赞
@@ -153,7 +158,8 @@ Route::group(function () {
//产品分类类
Route::get('category', 'store.CategoryController/category')->name('category');
//产品类
- Route::get('product/detail/:id', 'store.StoreProductController/detail')->name('detail');//产品详情
+ Route::post('image_base64', 'PublicController/get_image_base64')->name('getImageBase64');// 获取图片base64
+ Route::get('product/detail/:id/[:type]', 'store.StoreProductController/detail')->name('detail');//产品详情
Route::get('groom/list/:type', 'store.StoreProductController/groom_list')->name('groomList');//获取首页推荐不同类型产品的轮播图和产品
Route::get('products', 'store.StoreProductController/lst')->name('products');//产品列表
Route::get('product/hot', 'store.StoreProductController/product_hot')->name('productHot');//为你推荐
@@ -169,7 +175,7 @@ Route::group(function () {
//活动---秒杀
Route::get('seckill/index', 'activity.StoreSeckillController/index')->name('seckillIndex');//秒杀产品时间区间
Route::get('seckill/list/:time', 'activity.StoreSeckillController/lst')->name('seckillList');//秒杀产品列表
- Route::get('seckill/detail/:id', 'activity.StoreSeckillController/detail')->name('seckillDetail');//秒杀产品详情
+ Route::get('seckill/detail/:id/[:time]', 'activity.StoreSeckillController/detail')->name('seckillDetail');//秒杀产品详情
//活动---砍价
Route::get('bargain/config', 'activity.StoreBargainController/config')->name('bargainConfig');//砍价产品列表配置
Route::get('bargain/list', 'activity.StoreBargainController/lst')->name('bargainList');//砍价产品列表