...
|
...
|
@@ -586,9 +586,10 @@ class DetailModel |
|
|
*
|
|
|
* @param int $uid 用户ID
|
|
|
* @param int $id 咨询ID
|
|
|
* @param int $productId 商品ID
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function upvoteConsult($uid, $id)
|
|
|
public static function upvoteConsult($uid, $id, $productId)
|
|
|
{
|
|
|
$result = array('code' => 400, 'message' => '出错啦~');
|
|
|
|
...
|
...
|
@@ -598,6 +599,7 @@ class DetailModel |
|
|
if (empty($uid)) {
|
|
|
$result['code'] = 401;
|
|
|
$result['message'] = '用户id为空';
|
|
|
$result['data'] = Helpers::url('/signin.html', array('refer' => Helpers::url('/product/detail/consultform', array('product_id' => $productId))));
|
|
|
break;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -616,9 +618,10 @@ class DetailModel |
|
|
*
|
|
|
* @param int $uid 用户ID
|
|
|
* @param int $id 咨询ID
|
|
|
* @param int $productId 商品ID
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function usefulConsult($uid, $id)
|
|
|
public static function usefulConsult($uid, $id, $productId)
|
|
|
{
|
|
|
$result = array('code' => 400, 'message' => '出错啦~');
|
|
|
|
...
|
...
|
@@ -628,6 +631,7 @@ class DetailModel |
|
|
if (empty($uid)) {
|
|
|
$result['code'] = 401;
|
|
|
$result['message'] = '用户id为空';
|
|
|
$result['data'] = Helpers::url('/signin.html', array('refer' => Helpers::url('/product/detail/consultform', array('product_id' => $productId))));
|
|
|
break;
|
|
|
}
|
|
|
|
...
|
...
|
|