| xqd
@@ -2459,7 +2459,7 @@ class AlbumController extends Controller
|
|
|
if($userAuth->is_dealer!=1) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '该用户不是经销商!', $validator->messages());
|
|
|
$user_agent = AlbumAgentModel::where('user_id',$userAuth->id)->first();
|
|
|
if ($data['type'] == 1) { //尺寸统计
|
|
|
- $record = AlbumWatchRecord::where([['agent_id',$user_agent->id],['detail','like','%'.'goods_id'.'%'],['action',5],['store_id',$data['store_id']]])->get();
|
|
|
+ $record = AlbumWatchRecord::where([['agent_id',$user_agent->id],['detail','like','%'.'u5c3a'.'%'],['action',5],['store_id',$data['store_id']]])->get();
|
|
|
dd($record);
|
|
|
foreach ($record as $key=>$val){
|
|
|
$user = AlbumUserModel::where([['open_id',$val['open_id']],['store_id',$data['store_id']]])->first();
|