|
@@ -402,6 +402,17 @@ return array
|
|
|
'update' => 'textarea',
|
|
|
),
|
|
|
|
|
|
+ 'cash' => array
|
|
|
+ (
|
|
|
+ 'type' => 'decimal-11,2',
|
|
|
+ 'name' => '钱包余额',
|
|
|
+ 'default' => '0',
|
|
|
+ 'desc' => '钱包余额',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ //'update' => 'text',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
'score' => array
|
|
|
(
|
|
|
'type' => 'varchar-50',
|
|
@@ -606,7 +617,7 @@ return array
|
|
|
'id' => 'yes',
|
|
|
),
|
|
|
'type' => 'one',
|
|
|
- 'col' => 'id,username,avatar,sex,truename,area,mobile,area_id,address,address_contact,address_mobile,info,title,birthday,avatar_id',
|
|
|
+ 'col' => 'id,username,avatar,sex,truename,area,mobile,area_id,address,address_contact,address_mobile,info,title,birthday,avatar_id,cash',
|
|
|
),
|
|
|
|
|
|
'getNum' => array
|
|
@@ -634,5 +645,18 @@ return array
|
|
|
'order' => array('id' => 'desc'),
|
|
|
'col' => '*|id',
|
|
|
),
|
|
|
+
|
|
|
+ 'upCash' => array
|
|
|
+ (
|
|
|
+ 'type' => 'update',
|
|
|
+ 'where' => array
|
|
|
+ (
|
|
|
+ 'id' => 'yes',
|
|
|
+ ),
|
|
|
+ 'set' => array
|
|
|
+ (
|
|
|
+ 'cash' => array('yes', '+='),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
),
|
|
|
);
|