Commit 23703a51 by doszhang

dos

parent 66d66036
......@@ -14,7 +14,7 @@ return array(
'DB_TYPE' => 'mysql',
'DB_HOST' => 'localhost',
'DB_PORT' => '3306',
'DB_NAME' => '', // <--- 修改这里
'DB_NAME' => 'dev_samsung_20191217_christmas', // <--- 修改这里
'DB_USER' => 'dev', // <--- 修改这里
'DB_PWD' => '1q2w3e', // <--- 修改这里
'DB_PREFIX' => '',
......
......@@ -56,20 +56,8 @@ class IndexController extends Controller
));
return;
}
// if($user['chance'] <= 0)
// {
// $this->ajaxReturn(array(
// 'status' => -1,
// 'msg' => '机会用光了',
// 'step' => 1
// ));
// return false;
// }
// M('user')->where(array(
// 'id' => $user['id']
// ))->setDec('chance');
$count = M('prize' . $_SESSION['src'])->where(array(
$count = M('prize')->where(array(
'user_id' => $user['id']
))->count();
if($count > 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 sign in to comment