作者 王晓刚
1 个管道 的构建 通过 耗费 3 秒

商户申请

... ... @@ -164,7 +164,6 @@ class Index extends WechatBase
if($goods['distance'] != 0){
if($distance > $goods['distance']){
$is_distance = 0;
echo 1;
$this->success('SUCCESS','',['is_where_satisfy'=>$is_distance]);
}
}
... ... @@ -172,7 +171,6 @@ class Index extends WechatBase
if($goods['sex'] != 0){
if($user['gender'] == $goods['sex']){
$is_distance = 0;
echo 2;
$this->success('SUCCESS','',['is_where_satisfy'=>$is_distance]);
}
}
... ...
... ... @@ -315,7 +315,6 @@
dataType: "json",
data:{'user_id':user_id,'longitude':lng,'latitude':lat,'goods_id':goods_id},
success:function(res){
console.log("@@@@");
if(res.code == 1){
is_where_satisfy = res.data.is_where_satisfy;
if (is_satisfy == '1' && is_where_satisfy == '1') {
... ... @@ -328,8 +327,7 @@
}
},
error:function(res){
console.log("!!!!");
// toast('与服务器断开连接3');
toast('与服务器断开连接3');
}
});
}
... ...