|
@@ -94,6 +94,7 @@ class FriendsController extends WeChatBaseController |
|
@@ -94,6 +94,7 @@ class FriendsController extends WeChatBaseController |
94
|
$api[]='uploadImage';
|
94
|
$api[]='uploadImage';
|
95
|
$api[]='downloadImage';
|
95
|
$api[]='downloadImage';
|
96
|
$sdk=$js->config($api, false);
|
96
|
$sdk=$js->config($api, false);
|
|
|
97
|
+ $this->assign(cmf_get_option('site_info'));
|
97
|
$this->assign('sdk',$sdk);
|
98
|
$this->assign('sdk',$sdk);
|
98
|
$this->assign('group_id',$group_id);
|
99
|
$this->assign('group_id',$group_id);
|
99
|
return $this->fetch();
|
100
|
return $this->fetch();
|
|
@@ -186,7 +187,8 @@ class FriendsController extends WeChatBaseController |
|
@@ -186,7 +187,8 @@ class FriendsController extends WeChatBaseController |
186
|
|
187
|
|
187
|
$re = db('group_text')->insert($insert);
|
188
|
$re = db('group_text')->insert($insert);
|
188
|
if ($re==1){
|
189
|
if ($re==1){
|
189
|
- addScore($insert['user_id'],50,'发布圈子动态');
|
190
|
+ $site=cmf_get_option('site_info');
|
|
|
191
|
+ addScore($insert['user_id'],$site['friend'],'发布圈子动态');
|
190
|
}
|
192
|
}
|
191
|
return $re;
|
193
|
return $re;
|
192
|
}
|
194
|
}
|