|
|
@@ -1079,6 +1079,9 @@ class StoreOrderDao extends BaseDao
|
|
|
*/
|
|
|
public function getGiftOrder(int $uid)
|
|
|
{
|
|
|
- return $this->getModel()->where('uid', $uid)->where('pid', 1)->where('order_type',1 )->count();
|
|
|
+ $a=$this->getModel()->where('uid', $uid)->where('pid', 1)->where('order_type',1 )->count();
|
|
|
+ $sql = $this->getModel()->getLastSql();
|
|
|
+ @file_put_contents("quanju.txt", $sql."礼包检查sql \r\n", 8);
|
|
|
+ return $a;
|
|
|
}
|
|
|
}
|