企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
 $field = 'ACOS(SIN(('.$addr\["lat"\].' \* 3.1415) / 180 ) \*SIN((a.lat \* 3.1415) / 180 ) +COS(('.$addr\["lat"\].' \* 3.1415) / 180 )                 \* COS((a.lat \* 3.1415) / 180 ) \*COS(('.$addr\["lng"\].' \* 3.1415) / 180 - (a.lng \* 3.1415) / 180 ) ) \* 6380 as distance';             $dot=Db::name('dot')                 ->alias('a')                 ->field($field.",dot\_store\_name,dot\_door\_photo,id,business\_status,service\_distance,xysm")                 ->where($where)                 ->having( "distance<=service\_distance")                 ->order("distance asc") //                ->page($page,$limit)                 ->select();