|
@@ -74,7 +74,7 @@ class Pay
|
|
|
$user = Dever::db('passport/user')->one($uid);
|
|
|
|
|
|
|
|
|
- if (isset($user['mobile']) && $user['mobile'] && Dever::project('sms')) {
|
|
|
+ if (isset($user['mobile']) && $user['mobile'] && Dever::project('sms') && $order['cate_id'] == 1) {
|
|
|
$send = array();
|
|
|
$send['name'] = $journal['name'];
|
|
|
Dever::load('sms/api.send', 'buy_journal', $user['mobile'], $send);
|
|
@@ -84,7 +84,7 @@ class Pay
|
|
|
$wechat = Dever::db('passport/wechat')->one(array('uid' => $uid));
|
|
|
if ($wechat && Dever::project('wechat_applet')) {
|
|
|
$send['key'] = 'buy_journal';
|
|
|
- $send['project_id'] = 1;
|
|
|
+ $send['project_id'] = $order['cate_id'];
|
|
|
$send['touser'] = $wechat['openid'];
|
|
|
$send['page'] = Dever::config('base')->applet_index . '?scene=' . Dever::login($uid) . ',' . '4,' . $order['product_id'];
|
|
|
$send['data'] = array
|