|
@@ -48,6 +48,16 @@ class Demo extends Api
|
|
|
$this->task_bill($total_amount,$back_rate,$user_id,$shop_id,'hotel_order');
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ public function shopro_to_bill(){
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public function commander(){
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
* 40期限 数据模拟
|
|
|
* @return void
|
|
@@ -166,7 +176,7 @@ class Demo extends Api
|
|
|
$invite_count = Db::name('offline_shop')->where('invite_id',$user_id)->count();
|
|
|
|
|
|
|
|
|
- $invite_count_mon = Db::name('offline_shop')->where('invite_id',$user_id)->whereTime('back_time','last month')->count();
|
|
|
+ $invite_count_mon = Db::name('offline_shop')->where('invite_id',$user_id)->whereTime('create_time','last month')->count();
|
|
|
|
|
|
|
|
|
$invite_amount = Db::name('bill')->where('shop_invite_id',$user_id)->where('table_name','offline_shop_order')->where('back_status','neq',0)
|
|
@@ -458,4 +468,18 @@ class Demo extends Api
|
|
|
Db::name('live_room_log')->where('id',23)->update($data);
|
|
|
}
|
|
|
|
|
|
+ public function test4(){
|
|
|
+ $password = '123456';
|
|
|
+ $salt = 'xPpXeK';
|
|
|
+ dd(md5(md5($password) . $salt));
|
|
|
+
|
|
|
+ $a = ['first Day of last month 00:00:00', 'first Day of this month 00:00:00'];
|
|
|
+ echo date('Y-m-d H:i:s',strtotime($a[0]));
|
|
|
+ echo '<br>';
|
|
|
+ echo date('Y-m-d H:i:s',strtotime($a[1]));
|
|
|
+
|
|
|
+ $last_month_arr = [strtotime('first Day of last month 00:00:00'),strtotime('first Day of this month 00:00:00')-1];
|
|
|
+ dump($last_month_arr);
|
|
|
+ }
|
|
|
+
|
|
|
}
|