12345678910111213141516171819202122232425 |
- <?php
- /**
- * Created by PhpStorm.
- * User: shensong
- * Date: 2019/12/2
- * Time: 15:26
- */
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- class CustomerGiftReceives extends Model
- {
- protected $table = 'customer_gift_receives';
- public $timestamps = false;
- public static function getCustomerReceivesLog($phone,$type) {
- $self = new self();
- $log = $self->where('phone',$phone)->where('gift_type',$type)->get();
- $log = json_decode(json_encode($log),true);
- return $log;
- }
- }
|