|
@@ -118,8 +118,8 @@ class User extends AuthController
|
|
|
$f = array();
|
|
|
$f[] = Form::radio('money_status', '修改余额', 1)->options([['value' => 1, 'label' => '增加'], ['value' => 2, 'label' => '减少']]);
|
|
|
$f[] = Form::number('money', '余额')->min(0);
|
|
|
- $f[] = Form::radio('integration_status', '修改积分', 1)->options([['value' => 1, 'label' => '增加'], ['value' => 2, 'label' => '减少']]);
|
|
|
- $f[] = Form::number('integration', '积分')->min(0);
|
|
|
+ $f[] = Form::radio('integration_status', '修改阳光', 1)->options([['value' => 1, 'label' => '增加'], ['value' => 2, 'label' => '减少']]);
|
|
|
+ $f[] = Form::number('integration', '阳光')->min(0);
|
|
|
$form = Form::make_post_form('修改其他', $f, Url::buildUrl('update_other', array('uid' => $uid)));
|
|
|
$this->assign(compact('form'));
|
|
|
return $this->fetch('public/form-builder');
|
|
@@ -166,7 +166,7 @@ class User extends AuthController
|
|
|
if ($data['integration_status'] && $data['integration']) {//积分增加或者减少
|
|
|
if ($data['integration_status'] == 1) {//增加
|
|
|
$edit['integral'] = bcadd($user['integral'], $data['integration'], 2);
|
|
|
- $res2 = UserBillAdmin::income('系统增加积分', $user['uid'], 'integral', 'system_add', $data['integration'], $this->adminId, $edit['integral'], '系统增加了' . floatval($data['integration']) . '积分');
|
|
|
+ $res2 = UserBillAdmin::income('系统增加阳光', $user['uid'], 'integral', 'system_add', $data['integration'], $this->adminId, $edit['integral'], '系统增加了' . floatval($data['integration']) . '阳光');
|
|
|
try {
|
|
|
UserRepository::adminAddIntegral($user, $data['integration']);
|
|
|
} catch (\Exception $e) {
|
|
@@ -175,7 +175,7 @@ class User extends AuthController
|
|
|
}
|
|
|
} else if ($data['integration_status'] == 2) {//减少
|
|
|
$edit['integral'] = bcsub($user['integral'], $data['integration'], 2);
|
|
|
- $res2 = UserBillAdmin::expend('系统减少积分', $user['uid'], 'integral', 'system_sub', $data['integration'], $this->adminId, $edit['integral'], '系统扣除了' . floatval($data['integration']) . '积分');
|
|
|
+ $res2 = UserBillAdmin::expend('系统减少阳光', $user['uid'], 'integral', 'system_sub', $data['integration'], $this->adminId, $edit['integral'], '系统扣除了' . floatval($data['integration']) . '阳光');
|
|
|
try {
|
|
|
UserRepository::adminSubIntegral($user, $data['integration']);
|
|
|
} catch (\Exception $e) {
|
|
@@ -397,7 +397,7 @@ class User extends AuthController
|
|
|
if ($data['integration_status'] && $data['integration']) {//积分增加或者减少
|
|
|
if ($data['integration_status'] == 1) {//增加
|
|
|
$edit['integral'] = bcadd($user['integral'], $data['integration'], 2);
|
|
|
- $res2 = UserBillAdmin::income('系统增加积分', $user['uid'], 'integral', 'system_add', $data['integration'], $this->adminId, $edit['integral'], '系统增加了' . floatval($data['integration']) . '积分');
|
|
|
+ $res2 = UserBillAdmin::income('系统增加阳光', $user['uid'], 'integral', 'system_add', $data['integration'], $this->adminId, $edit['integral'], '系统增加了' . floatval($data['integration']) . '阳光');
|
|
|
try {
|
|
|
UserRepository::adminAddIntegral($user, $data['integration']);
|
|
|
} catch (\Exception $e) {
|
|
@@ -406,7 +406,7 @@ class User extends AuthController
|
|
|
}
|
|
|
} else if ($data['integration_status'] == 2) {//减少
|
|
|
$edit['integral'] = bcsub($user['integral'], $data['integration'], 2);
|
|
|
- $res2 = UserBillAdmin::expend('系统减少积分', $user['uid'], 'integral', 'system_sub', $data['integration'], $this->adminId, $edit['integral'], '系统扣除了' . floatval($data['integration']) . '积分');
|
|
|
+ $res2 = UserBillAdmin::expend('系统减少阳光', $user['uid'], 'integral', 'system_sub', $data['integration'], $this->adminId, $edit['integral'], '系统扣除了' . floatval($data['integration']) . '阳光');
|
|
|
try {
|
|
|
UserRepository::adminSubIntegral($user, $data['integration']);
|
|
|
} catch (\Exception $e) {
|
|
@@ -419,8 +419,8 @@ class User extends AuthController
|
|
|
}
|
|
|
$res_sp = true;
|
|
|
if ($data['spread_uid'] != $user['spread_uid']) {
|
|
|
- $res_sp = \app\models\user\User::setSpread($data['spread_uid'], $uid);
|
|
|
-// $edit['spread_uid'] = $data['spread_uid'];
|
|
|
+// $res_sp = \app\models\user\User::setSpread($data['spread_uid'], $uid);
|
|
|
+ $edit['spread_uid'] = $data['spread_uid'];
|
|
|
}
|
|
|
$edit['status'] = $data['status'];
|
|
|
$edit['real_name'] = $data['real_name'];
|