|
@@ -243,12 +243,23 @@ class Color extends Start_Controller {
|
|
{
|
|
{
|
|
if (empty($_SESSION['api'])) {
|
|
if (empty($_SESSION['api'])) {
|
|
$userid = 0;
|
|
$userid = 0;
|
|
|
|
+ $this->data['user_id'] = $userid;
|
|
|
|
+ $this->data['userid'] = "";
|
|
}else{
|
|
}else{
|
|
$user = $this->user->get_api($_SESSION['api']);
|
|
$user = $this->user->get_api($_SESSION['api']);
|
|
- $userid = $user['id'];
|
|
|
|
|
|
+ if(in_array($user['userid'],array('admin','速卖通管理员','独立站管理员','文员','文员指定下载'))){
|
|
|
|
+ $userid = 10;
|
|
|
|
+ }else{
|
|
|
|
+ if($user['id'] == 10){
|
|
|
|
+ $userid = 10;
|
|
|
|
+ }else{
|
|
|
|
+ $userid = 0;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $this->data['user_id'] = $userid;
|
|
|
|
+ $this->data['userid'] = $user['userid'];
|
|
}
|
|
}
|
|
- $this->data['user_id'] = $userid;
|
|
|
|
- $this->data['userid'] = $user['userid'];
|
|
|
|
|
|
+
|
|
$post = $this->input->post(NULL, TRUE);
|
|
$post = $this->input->post(NULL, TRUE);
|
|
if(isset($post['id']))
|
|
if(isset($post['id']))
|
|
{
|
|
{
|