|
@@ -3,9 +3,7 @@
|
|
|
namespace Active\Lib;
|
|
|
|
|
|
use Dever;
|
|
|
-use Active\Lib\Core;
|
|
|
-
|
|
|
-class Active extends Core
|
|
|
+class Active
|
|
|
{
|
|
|
public function action($uid, $active_id, $num, $path, $remark = false)
|
|
|
{
|
|
@@ -13,7 +11,6 @@ class Active extends Core
|
|
|
// print_R(json_decode('[{"id":"1","value":"文本"},{"id":"2","value":"文本"},{"id":"3","value":"1"}]'));die;
|
|
|
$data = Dever::db('active/info')->find($active_id);
|
|
|
// print_R($data);die;
|
|
|
- $user = $this->user;
|
|
|
$insert['active_id'] = $active_id;
|
|
|
$insert['mid'] = $user['mid'];
|
|
|
$insert['num'] = $num;
|
|
@@ -72,7 +69,7 @@ class Active extends Core
|
|
|
'channel_id' => 1,
|
|
|
'system_source' => 1,
|
|
|
'account_id' => 8,
|
|
|
- 'uid' => $this->uid,
|
|
|
+ 'uid' => $uid,
|
|
|
'name' => $active['name'],
|
|
|
//'openid' => $data['openid'],
|
|
|
'cash' => $info['price'],
|