Commit e7b338a3 by 冷斌

fix bug

parent 0ae48771
......@@ -83,6 +83,9 @@ class Model_Login extends PhalApi_Model_NotORM {
"user_type"=>2,//会员
"source"=>$source,
"coin"=>$reg_reward,
"votes" => 0,
"i_votes" => 0,
"f_votes" => 0
);
$isexist=DI()->notorm->users
......@@ -185,6 +188,9 @@ class Model_Login extends PhalApi_Model_NotORM {
"user_type"=>2,//会员
"source"=>$source,
"coin"=>$reg_reward,
"votes" => 0,
"i_votes" => 0,
"f_votes" => 0
);
$rs=DI()->notorm->users->insert($data);
......
......@@ -123,6 +123,9 @@ class InviteController extends HomebaseController {
'user_status' => 1,
"user_type"=>2,//会员
'signature' =>'这家伙很懒,什么都没留下',
"votes" => 0,
"i_votes" => 0,
"f_votes" => 0
);
$userid=$User->add($data);
......@@ -312,6 +315,9 @@ class InviteController extends HomebaseController {
'user_status' => 1,
"user_type"=>2,//会员
"pid" => $agentid,
"votes" => 0,
"i_votes" => 0,
"f_votes" => 0
);
if($configPri['reg_reward']>0){
......
......@@ -123,6 +123,9 @@ class RegController extends HomebaseController {
'user_status' => 1,
"user_type"=>2,//会员
'signature' =>'这家伙很懒,什么都没留下',
"votes" => 0,
"i_votes" => 0,
"f_votes" => 0
);
$userid=$User->add($data);
......@@ -311,6 +314,9 @@ class RegController extends HomebaseController {
'create_time' => date("Y-m-d H:i:s"),
'user_status' => 1,
"user_type"=>2,//会员
"votes" => 0,
"i_votes" => 0,
"f_votes" => 0
);
if($configPri['reg_reward']>0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment