|
@@ -0,0 +1,167 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+$type = array
|
|
|
+(
|
|
|
+ 1 => '微信',
|
|
|
+ 2 => '微博',
|
|
|
+);
|
|
|
+
|
|
|
+$actType = array
|
|
|
+(
|
|
|
+ 1 => '分享给朋友',
|
|
|
+ 2 => '分享到朋友圈',
|
|
|
+ 3 => '分享到QQ',
|
|
|
+);
|
|
|
+
|
|
|
+$actResult = array
|
|
|
+(
|
|
|
+ 1 => '分享成功',
|
|
|
+ 2 => '取消分享',
|
|
|
+ 3 => '分享失败',
|
|
|
+);
|
|
|
+
|
|
|
+$project = function()
|
|
|
+{
|
|
|
+ $array = array();
|
|
|
+ $info = Dever::load('token/project-state');
|
|
|
+ if($info)
|
|
|
+ {
|
|
|
+ $array += $info;
|
|
|
+ }
|
|
|
+ return $array;
|
|
|
+};
|
|
|
+return array
|
|
|
+(
|
|
|
+
|
|
|
+ 'name' => 'collect',
|
|
|
+
|
|
|
+ 'lang' => '分享列表',
|
|
|
+ 'order' => 90,
|
|
|
+
|
|
|
+ 'struct' => array
|
|
|
+ (
|
|
|
+ 'id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => 'ID',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'search' => 'order',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'project_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '项目',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '请输入项目',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'option' => $project,
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'uid' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '用户ID',
|
|
|
+ 'default' => '-1',
|
|
|
+ 'desc' => '用户ID',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'text',
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'url' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-300',
|
|
|
+ 'name' => '分享地址',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '分享地址',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'ua' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-800',
|
|
|
+ 'name' => '用户ua数据',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '用户ua数据',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'textarea',
|
|
|
+ 'list' => true,
|
|
|
+ 'modal' => '查看详情',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'type' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '分享类型',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '分享类型',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'select',
|
|
|
+ 'search' => 'select',
|
|
|
+ 'option' => $type,
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'actType' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '分享行为',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '分享行为',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'select',
|
|
|
+ 'search' => 'select',
|
|
|
+ 'option' => $actType,
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'actResult' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '分享结果',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '分享结果',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'select',
|
|
|
+
|
|
|
+ 'option' => $actResult,
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'state' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '状态',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '请选择状态',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'cdate' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '更新时间',
|
|
|
+ 'match' => array('is_numeric', time()),
|
|
|
+ 'desc' => '',
|
|
|
+ 'default' => '',
|
|
|
+ 'list' => 'date("Y-m-d H:i:s", {cdate})',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'manage' => array
|
|
|
+ (
|
|
|
+ 'delete' => false,
|
|
|
+ 'insert' => false,
|
|
|
+ 'edit' => false,
|
|
|
+
|
|
|
+
|
|
|
+ ),
|
|
|
+);
|